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

            if (typeof(int) == objType)
            {
                pValue.SetValue(m_objParameter, m_objINI.GetInt32(m_strSection, strVariableName, 0));
            }
            else if (typeof(double) == objType)
            {
                pValue.SetValue(m_objParameter, m_objINI.GetDouble(m_strSection, strVariableName, 0.0));
            }
            else if (typeof(bool) == objType)
            {
                pValue.SetValue(m_objParameter, m_objINI.GetBool(m_strSection, strVariableName, false));
            }
            else if (typeof(string) == objType)
            {
                pValue.SetValue(m_objParameter, m_objINI.GetString(m_strSection, strVariableName, ""));
            }
            // enum
            else
            {
                pValue.SetValue(m_objParameter, m_objINI.GetInt32(m_strSection, strVariableName, 0));
            }
        }
Ejemplo n.º 2
0
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        //생성 :
        //추가 :
        //목적 : 레시피 정보 리스트 받음
        //설명 :
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        public List <CConfig.CRecipeInformation> GetRecipeInformationList()
        {
            var pDocument = CDocument.GetDocument;
            List <CConfig.CRecipeInformation> objRecipeInformationList = new List <CConfig.CRecipeInformation>();

            List <string> objRecipeIDList = GetDirectoryList(pDocument.m_objConfig.GetRecipePath());

            // 해당 폴더 검색해서 레시피 파라미터 리스트를 뽑아냄
            for (int iLoopRecipeIDList = 0; iLoopRecipeIDList < objRecipeIDList.Count; iLoopRecipeIDList++)
            {
                string strPath = string.Format(@"{0}\{1}", pDocument.m_objConfig.GetRecipePath(), objRecipeIDList[iLoopRecipeIDList]);
                if (false == Directory.Exists(strPath))
                {
                    // 폴더 생성
                    Directory.CreateDirectory(strPath);
                }
                strPath = string.Format(@"{0}\{1}\{2}", pDocument.m_objConfig.GetRecipePath(), objRecipeIDList[iLoopRecipeIDList], CDefine.DEF_RECIPE_INI);
                ClassINI objINI     = new ClassINI(strPath);
                string   strSection = "RECIPE";

                CConfig.CRecipeInformation objRecipeInformation = new CConfig.CRecipeInformation();
                objRecipeInformation.strRecipeID   = objINI.GetString(strSection, "strRecipeID", "");
                objRecipeInformation.strRecipeName = objINI.GetString(strSection, "strRecipeName", "");
                objRecipeInformationList.Add(objRecipeInformation);
            }

            return(objRecipeInformationList);
        }
Ejemplo n.º 3
0
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        //생성 :
        //추가 :
        //목적 : 레시피 정보 리스트 받음
        //설명 :
        //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        public CConfig.CRecipeInformation GetRecipeInformationList(string strRecipeID)
        {
            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";

            CConfig.CRecipeInformation objRecipeInformation = new CConfig.CRecipeInformation();
            objRecipeInformation.strRecipeID   = objINI.GetString(strSection, "strRecipeID", "");
            objRecipeInformation.strRecipeName = objINI.GetString(strSection, "strRecipeName", "");

            return(objRecipeInformation);
        }
Ejemplo n.º 4
0
		//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		//생성 : 
		//추가 : 
		//목적 : 유저 정보 파라미터 로드
		//설명 : 
		//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		private void LoadUserInformationParameter()
		{
			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++ ) {
					string strData = objINI.GetString( strSection, string.Format( "strLoginParameter{0}", iLoopCount.ToString() ), "Pok+j8Eyvhqpuxu+j2h8fg==" );
					// 데이터 복호화
					strLogInPassword = AEC256.AESDecrypt256( strData );
					m_objLogInParameter.strLoginParameter[ iLoopCount ] = strLogInPassword;
				}

			} while( false );
		}