Ejemplo n.º 1
0
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        //생성 :
        //추가 :
        //목적 : 설정 값 작성
        //설명 :
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        public void SaveValue(string strVariableName)
        {
            var    pValue   = m_objParameter.GetType().GetField(strVariableName);
            object objValue = pValue.GetValue(m_objParameter);
            Type   objType  = objValue.GetType();

            if (typeof(int) == objType)
            {
                m_objINI.WriteValue(m_strSection, strVariableName, ( int )objValue);
            }
            else if (typeof(double) == objType)
            {
                m_objINI.WriteValue(m_strSection, strVariableName, ( double )objValue);
            }
            else if (typeof(bool) == objType)
            {
                m_objINI.WriteValue(m_strSection, strVariableName, ( bool )objValue);
            }
            else if (typeof(string) == objType)
            {
                m_objINI.WriteValue(m_strSection, strVariableName, ( string )objValue);
            }
            // enum
            else
            {
                m_objINI.WriteValue(m_strSection, strVariableName, ( int )objValue);
            }
        }
Ejemplo n.º 2
0
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        //생성 :
        //추가 :
        //목적 : 해당 레시피 폴더 내 레시피 아이디 변수 일치시킴
        //설명 :
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        public void SetRecipeIDMatch(string strRecipeID, string strRecipeName)
        {
            var pDocument = CDocument.GetDocument;

            string strPath = string.Format(@"{0}\{1}", pDocument.m_objConfig.GetRecipePath(), strRecipeID);

            if (false == Directory.Exists(strPath))
            {
                // 폴더 생성
                Directory.CreateDirectory(strPath);
            }
            strPath = string.Format(@"{0}\{1}\{2}", pDocument.m_objConfig.GetRecipePath(), strRecipeID, CDefine.DEF_RECIPE_INI);
            ClassINI objINI     = new ClassINI(strPath);
            string   strSection = "RECIPE";

            objINI.WriteValue(strSection, "strRecipeID", strRecipeID);
            objINI.WriteValue(strSection, "strRecipeName", strRecipeName);
        }
Ejemplo n.º 3
0
		//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		//생성 : 
		//추가 : 
		//목적 : 유저 정보 파라미터 저장
		//설명 : 
		//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		private void SaveUserInformationParameter()
		{
			var pDocument = CDocument.GetDocument;

			do {
				string strPath = string.Format( @"{0}\{1}", pDocument.m_objConfig.GetCurrentPath(), CDefine.DEF_USER_INFORMATION );
				ClassINI objINI = new ClassINI( strPath );

				string strSection = "SYSTEM";
				string strLogInPassword = "";
				for( int iLoopCount = 0; iLoopCount < ( int )CDefine.enumUserAuthorityLevel.USER_AUTHORITY_LEVEL_FINAL; iLoopCount++ ) {
					// 데이터 암호화
					strLogInPassword = AEC256.AESEncrypt256( m_objLogInParameter.strLoginParameter[ iLoopCount ] );
					objINI.WriteValue( strSection, string.Format( "strLoginParameter{0}", iLoopCount.ToString() ), strLogInPassword );
				}

			} while( false );
		}