예제 #1
0
		public clsMAST_FTP_DEPOSITELOAN_TB Clone()
		{
			try
			{
				clsMAST_FTP_DEPOSITELOAN_TB cloneTB = new clsMAST_FTP_DEPOSITELOAN_TB();
				
				
				cloneTB._INSTRUMENT_ID = this._INSTRUMENT_ID;
				cloneTB._INSTRUMENT_TYP = this._INSTRUMENT_TYP;
				cloneTB._NOTIONAL = this._NOTIONAL;
				cloneTB._QUANTITY = this._QUANTITY;
				cloneTB._CURR = this._CURR;
				cloneTB._DEPOSITELOAN_TYP = this._DEPOSITELOAN_TYP;
				cloneTB._INDEX_CD = this._INDEX_CD;
				cloneTB._INDEX_RATE = this._INDEX_RATE;
				cloneTB._SPREAD = this._SPREAD;
				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_FTP_DEPOSITELOAN_TB Create(DataRow dr)
		{
			try
			{
				clsMAST_FTP_DEPOSITELOAN_TB tb = new clsMAST_FTP_DEPOSITELOAN_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._CURR = Convert.ToString(dr[4]);
				tb._DEPOSITELOAN_TYP = Convert.ToInt32(dr[5]);
				tb._INDEX_CD = Convert.ToString(dr[6]);
				tb._INDEX_RATE = Convert.ToDouble(dr[7]);
				tb._SPREAD = Convert.ToDouble(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);
			}
		}