Example #1
0
		public clsMAST_CODE_NAME_TB Clone()
		{
			try
			{
				clsMAST_CODE_NAME_TB cloneTB = new clsMAST_CODE_NAME_TB();
				
				
				cloneTB._CODE = this._CODE;
				cloneTB._NAME_KR = this._NAME_KR;
				cloneTB._NAME_EN = this._NAME_EN;
				cloneTB._CODE_PROVIDER = this._CODE_PROVIDER;
				cloneTB._KAP_CD = this._KAP_CD;
				cloneTB._KISS_CD = this._KISS_CD;
				cloneTB._NICE_CD = this._NICE_CD;
				cloneTB._FNPRICING_CD = this._FNPRICING_CD;
				cloneTB._BLOOMBERG_CD = this._BLOOMBERG_CD;
				cloneTB._REUTERS_CD = this._REUTERS_CD;
				cloneTB._YAHOO_CD = this._YAHOO_CD; 
				
				return cloneTB;
			}
			catch(Exception ex)
			{
				throw new Exception(ex.Message);
			}
		}
Example #2
0
		public static clsMAST_CODE_NAME_TB Create(DataRow dr)
		{
			try
			{
				clsMAST_CODE_NAME_TB tb = new clsMAST_CODE_NAME_TB();
				
				
				tb._CODE = Convert.ToString(dr[0]);
				tb._NAME_KR = Convert.ToString(dr[1]);
				tb._NAME_EN = Convert.ToString(dr[2]);
				tb._CODE_PROVIDER = Convert.ToInt32(dr[3]);
				tb._KAP_CD = Convert.ToString(dr[4]);
				tb._KISS_CD = Convert.ToString(dr[5]);
				tb._NICE_CD = Convert.ToString(dr[6]);
				tb._FNPRICING_CD = Convert.ToString(dr[7]);
				tb._BLOOMBERG_CD = Convert.ToString(dr[8]);
				tb._REUTERS_CD = Convert.ToString(dr[9]);
				tb._YAHOO_CD = Convert.ToString(dr[10]); 
				
				return tb;
			}
			catch(Exception ex)
			{
				throw new Exception(ex.Message);
			}
		}