コード例 #1
0
		public clsHITM_INSR_GRID_RESULT_TB Clone()
		{
			try
			{
				clsHITM_INSR_GRID_RESULT_TB cloneTB = new clsHITM_INSR_GRID_RESULT_TB();
				
				
				cloneTB._CALC_DT = this._CALC_DT;
				cloneTB._POLICY_NO = this._POLICY_NO;
				cloneTB._POLICY_TYP = this._POLICY_TYP;
				cloneTB._OPTION_TYP = this._OPTION_TYP;
				cloneTB._UNDERLYING_ID = this._UNDERLYING_ID;
				cloneTB._UNDERLYING_VALUE = this._UNDERLYING_VALUE;
				cloneTB._SEQ = this._SEQ;
				cloneTB._VALUE_C = this._VALUE_C;
				cloneTB._VALUE_U = this._VALUE_U;
				cloneTB._VALUE_UU = this._VALUE_UU;
				cloneTB._VALUE_UUU = this._VALUE_UUU;
				cloneTB._VALUE_D = this._VALUE_D;
				cloneTB._VALUE_DD = this._VALUE_DD;
				cloneTB._VALUE_DDD = this._VALUE_DDD;
				cloneTB._CALCULATED_FLAG = this._CALCULATED_FLAG;
				cloneTB._CALCULATED_TIME = this._CALCULATED_TIME;
				cloneTB._CALCULATE_TYP = this._CALCULATE_TYP; 
				
				return cloneTB;
			}
			catch(Exception ex)
			{
				throw new Exception(ex.Message);
			}
		}
コード例 #2
0
		public static clsHITM_INSR_GRID_RESULT_TB Create(DataRow dr)
		{
			try
			{
				clsHITM_INSR_GRID_RESULT_TB tb = new clsHITM_INSR_GRID_RESULT_TB();
				
				
				tb._CALC_DT = Convert.ToString(dr[0]);
				tb._POLICY_NO = Convert.ToInt32(dr[1]);
				tb._POLICY_TYP = Convert.ToInt32(dr[2]);
				tb._OPTION_TYP = Convert.ToInt32(dr[3]);
				tb._UNDERLYING_ID = Convert.ToString(dr[4]);
				tb._UNDERLYING_VALUE = Convert.ToDouble(dr[5]);
				tb._SEQ = Convert.ToInt32(dr[6]);
				tb._VALUE_C = Convert.ToDouble(dr[7]);
				tb._VALUE_U = Convert.ToDouble(dr[8]);
				tb._VALUE_UU = Convert.ToDouble(dr[9]);
				tb._VALUE_UUU = Convert.ToDouble(dr[10]);
				tb._VALUE_D = Convert.ToDouble(dr[11]);
				tb._VALUE_DD = Convert.ToDouble(dr[12]);
				tb._VALUE_DDD = Convert.ToDouble(dr[13]);
				tb._CALCULATED_FLAG = Convert.ToInt32(dr[14]);
				tb._CALCULATED_TIME = Convert.ToString(dr[15]);
				tb._CALCULATE_TYP = Convert.ToInt32(dr[16]); 
				
				return tb;
			}
			catch(Exception ex)
			{
				throw new Exception(ex.Message);
			}
		}