/// <summary> /// 각 Class를 Loading하고 Initial한다. /// </summary> public void subclsInitial() { try { subProgressText("PlugIn Loading"); pclsDBActPlugIn = new clsDBActPlugIn(); //DB를 다루기위한 PlugIn cls정의및 생성 pclsInfoPlugIn = new clsInfoActPlugIn(); //구조체를 다루기위한 PlugIn cls정의및 생성 pclsLogActPlugIn = new clsLogActPlugIn(); pclsHostActPlugIn = new clsHostActPlugIn(); //호스트를 다루기위한 PlugIn cls정의및 생성 pclsEqpActPlugIn = new clsEqpActPlugIn(); //장비를 다루기위한 PlugIn cls정의및 생성 pclsDisplayActPlugIn = new clsDisplayActPlugIn(); if (pInfo.AddAll() == true) { string dModelINI = Application.StartupPath + @"\system\EqpModel.ini"; pInfo.All.MODEL_NAME = FunINIMethod.funINIReadValue("MODEL", "NAME", "", dModelINI); } subProgressText("DBAct Initial"); pclsDBActPlugIn.funConnectDB(pInfo.All.MODEL_NAME); //DB OPEN subProgressText("InfoAct Initial"); pclsInfoPlugIn.subInitialInfo(pInfo.All.MODEL_NAME); //구조체 초기화 subProgressText("LogAct Initial"); pclsLogActPlugIn.subInitialLog(); //Log 폴더 Initial subProgressText("DisplayAct Initial"); pclsDisplayActPlugIn.subInitial(); //Main Form Load subProgressText("EqpAct Initial"); pclsEqpActPlugIn.funOpenPLC(); //장비 초기화 subProgressText("HostAct Initial"); pclsHostActPlugIn.funOpenSecs("EAP01"); //호스트 초기화 pclsDBActPlugIn.funDisconnectDB(); //DB CLOSE this.pgbLoading.Value = 100; } catch (Exception ex) { this.pInfo.subLog_Set(InfoAct.clsInfo.LogType.CIM, ex.ToString()); } }
//******************************************************************************* // Function Name : subclsInitial() // Description : 각 Class를 Loading하고 Initial한다. // Parameters : None // Return Value : None // Special Notes : //******************************************************************************* // 2006/11/02 어 경태 [L 00] //******************************************************************************* public void subclsInitial() { try { subProgressText("PlugIn Loading"); pclsDBActPlugIn = new clsDBActPlugIn(); //DB를 다루기위한 PlugIn cls정의및 생성 pclsInfoPlugIn = new clsInfoActPlugIn(); //구조체를 다루기위한 PlugIn cls정의및 생성 pclsLogActPlugIn = new clsLogActPlugIn(); pclsEqpActPlugIn = new clsEqpActPlugIn(); //장비를 다루기위한 PlugIn cls정의및 생성 if (pInfo.AddAll() == true) { string dModelINI = @"D:\Source\STM\bin\Debug\system\EqpModel.ini"; pInfo.All.MODEL_NAME = FunINIMethod.funINIReadValue("MODEL", "NAME", "", dModelINI); } subProgressText("DBAct Initial"); pclsDBActPlugIn.funConnectDB(pInfo.All.MODEL_NAME); //DB OPEN subProgressText("InfoAct Initial"); pclsInfoPlugIn.subInitialInfo(pInfo.All.MODEL_NAME); //구조체 초기화 subProgressText("LogAct Initial"); //pclsLogActPlugIn.PInfo = this.pInfo; pclsLogActPlugIn.subInitialLog(); //Log 폴더 Initial subProgressText("EqpAct Initial"); pclsEqpActPlugIn.funOpenPLC(); //장비 초기화 pclsDBActPlugIn.funDisconnectDB(); //DB CLOSE this.pgbLoading.Value = 100; } catch (Exception ex) { this.pInfo.subLog_Set(InfoAct.clsInfo.LogType.CIM, ex.ToString()); } }