コード例 #1
0
		public clsMAST_VANILLA_SWAP_INFO_TB Clone()
		{
			try
			{
				clsMAST_VANILLA_SWAP_INFO_TB cloneTB = new clsMAST_VANILLA_SWAP_INFO_TB();
				
				
				cloneTB._INSTRUMENT_ID = this._INSTRUMENT_ID;
				cloneTB._INSTRUMENT_TYP = this._INSTRUMENT_TYP;
				cloneTB._NOTIONAL = this._NOTIONAL;
				cloneTB._CURR = this._CURR;
				cloneTB._EFFECTIVE_DT = this._EFFECTIVE_DT;
				cloneTB._MATURITY_DT = this._MATURITY_DT;
				cloneTB._COUPON_TENOR = this._COUPON_TENOR;
				cloneTB._MATURITY_TENOR = this._MATURITY_TENOR;
				cloneTB._PAY_REC = this._PAY_REC;
				cloneTB._FLOATING_LEG_BDC = this._FLOATING_LEG_BDC;
				cloneTB._FLOATING_LEG_DC = this._FLOATING_LEG_DC;
				cloneTB._FIXED_LEG_BDC = this._FIXED_LEG_BDC;
				cloneTB._FIXED_LEG_DC = this._FIXED_LEG_DC; 
				
				return cloneTB;
			}
			catch(Exception ex)
			{
				throw new Exception(ex.Message);
			}
		}
コード例 #2
0
		public static clsMAST_VANILLA_SWAP_INFO_TB Create(DataRow dr)
		{
			try
			{
				clsMAST_VANILLA_SWAP_INFO_TB tb = new clsMAST_VANILLA_SWAP_INFO_TB();
				
				
				tb._INSTRUMENT_ID = Convert.ToString(dr[0]);
				tb._INSTRUMENT_TYP = Convert.ToInt32(dr[1]);
				tb._NOTIONAL = Convert.ToInt32(dr[2]);
				tb._CURR = Convert.ToString(dr[3]);
				tb._EFFECTIVE_DT = Convert.ToString(dr[4]);
				tb._MATURITY_DT = Convert.ToString(dr[5]);
				tb._COUPON_TENOR = Convert.ToString(dr[6]);
				tb._MATURITY_TENOR = Convert.ToString(dr[7]);
				tb._PAY_REC = Convert.ToInt32(dr[8]);
				tb._FLOATING_LEG_BDC = Convert.ToInt32(dr[9]);
				tb._FLOATING_LEG_DC = Convert.ToInt32(dr[10]);
				tb._FIXED_LEG_BDC = Convert.ToInt32(dr[11]);
				tb._FIXED_LEG_DC = Convert.ToInt32(dr[12]); 
				
				return tb;
			}
			catch(Exception ex)
			{
				throw new Exception(ex.Message);
			}
		}