//private void Viewer_ConfigureDataConnection(object sender, DashboardConfigureDataConnectionEventArgs e)
        //{
        //    if (e.ConnectionName == "m.coever.co.kr_coever_mes_Connection")
        //    {
        //        e.ConnectionParameters = new MySqlConnectionParameters();
        //        SqlDashboardHelper.SetupSqlParameters((MySqlConnectionParameters)e.ConnectionParameters);
        //    }

        //}
        #endregion

        // 초기화 처리 영역
        #region ○ 메뉴 초기화 하기 - InitializeSetting()

        private void InitializeSetting()
        {
            try
            {
                //메인 화면 전역 변수 처리
                //_pCORP_CODE = MainForm.UserEntity.CORP_CODE;
                //_pUSER_CODE = MainForm.UserEntity.USER_CODE;
                //_pUSER_NAME = MainForm.UserEntity.USER_NAME;
                //_pLANGUAGE_TYPE = MainForm.UserEntity.LANGUAGE_TYPE;
                //_pFONT_TYPE = MainForm.UserEntity.FONT_TYPE;
                //_pFONT_SIZE = MainForm.UserEntity.FONT_SIZE;
                _pFONT_SETTING = new Font(_pFONT_TYPE, _pFONT_SIZE);
                //_pFTP_ID = MainForm.UserEntity.FTP_ID;
                //_pFTP_IP_PORT = MainForm.UserEntity.FTP_IP_PORT;  //string.Format(@"{0}/{1}/", MainForm.UserEntity.FTP_IP_PORT, "test"); //화면 별 해당 위치 지정
                //_pFTP_PW = MainForm.UserEntity.FTP_PW;



                _pWINDOW_NAME = this.Name;

                //메뉴 화면 엔티티 설정
                _pPOPSelect_INSPECT_COSMETICSEntity               = new POPSelect_INSPECT_COSMETICSEntity();
                _pPOPSelect_INSPECT_COSMETICSEntity.CORP_CODE     = _pCORP_CODE;
                _pPOPSelect_INSPECT_COSMETICSEntity.USER_CODE     = _pUSER_CODE;
                _pPOPSelect_INSPECT_COSMETICSEntity.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                _pPOPSelect_INSPECT_COSMETICSEntity.PROCESS_CODE  = "";
                _pPOPSelect_INSPECT_COSMETICSEntity.RESOURCE_CODE = "";



                _luTPART_NAME.Text           = "";
                _luTPART_CODE.Text           = "";
                _luTINSPECT_STATUS.Text      = "";
                _luTAPPROVAL_YN.Text         = "";
                _luTPRODUCTION_ORDER_ID.Text = "";
                _luTPART_NAME.Appearance.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;

                //화면 설정 언어 & 명칭 변경.
                DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE);

                if (dtLanguage != null && dtLanguage.Rows.Count > 0)
                {
                    CoFAS_ControlManager.Language_Info(dtLanguage, this);
                }

                //그리드 설정
                InitializeGrid();

                //화면 컨트롤러 설정
                InitializeControl();

                //컨트롤러 별 추가 이벤트 생성은 화면 설정 마지막에 진행
                _gdMAIN_VIEW.RowCellClick += _gdMAIN_VIEW_RowCellClick;

                //그리드 초기화

                ////여러 그리드 사용시 마스터 그리드는 최초 실행 시에만 초기화
                //_pSampleRegisterEntity.CRUD = "";
                //if (_pFirstYN)
                //{
                MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨.

                //    _pFirstYN = false;
                //}

                //SubFind_DisplayData("", ""); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨.

                //컨트롤러 별 추가 이벤트 생성은 화면 설정 마지막에 진행
                //_gdMAIN_VIEW.RowCellClick += _gdMAIN_VIEW_RowCellClick;
                //그리드 버튼추가 시 클릭 이벤트 처리
                //CoFAS_DevExpressManager._OnButtonPressed += CoFAS_DevExpressManager__OnButtonPressed;
                //CoFAS_DevExpressManager._OnOpenButton += CoFAS_DevExpressManager__OnOpenButton;
                // CoFAS_DevExpressManager._OnOpenClick += CoFAS_DevExpressManager__OnOpenClick;
                //CoFAS_DevExpressManager._OnDownloadClick += CoFAS_DevExpressManager__OnDownloadClick;
                // CoFAS_DevExpressManager._OnDeleteClick += CoFAS_DevExpressManager__OnDeleteClick;


                //CoFAS_ControlManager.SetFontInControls(this.Controls, new Font("Arial", 8, FontStyle.Bold));
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
        private void InitializeSetting()
        {
            try
            {
                //상속 화면 패널 사용 유무
                _pnRight.Visible = false;

                //메인 화면 전역 변수 처리
                _pCORP_CDDE = "9999999999";//MainForm.UserEntity.CORP_CODE;
                //_pUSER_CODE = "*****@*****.**";// MainForm.UserEntity.USER_CODE;
                //_pUSER_NAME = "";//MainForm.UserEntity.USER_NAME;
                //_pLANGUAGE_TYPE = MainForm.UserEntity.LANGUAGE_TYPE;
                //_pFONT_TYPE = MainForm.UserEntity.FONT_TYPE;

                //메인 화면 전역 변수 처리
                //_pCORP_CODE = MainForm.UserEntity.CORP_CODE;
                //_pUSER_CODE = MainForm.UserEntity.USER_CODE;
                //_pUSER_NAME = MainForm.UserEntity.USER_NAME;
                //_pLANGUAGE_TYPE = MainForm.UserEntity.LANGUAGE_TYPE;
                //_pFONT_TYPE = MainForm.UserEntity.FONT_TYPE;
                //_pFONT_SIZE = MainForm.UserEntity.FONT_SIZE;
                //_pFONT_SETTING = new Font(_pFONT_TYPE, _pFONT_SIZE);


                _pWINDOW_NAME   = this.Name;
                _pLANGUAGE_TYPE = _pUserEntity.LANGUAGE_TYPE;
                _lbTitle.Text   = _pUserEntity.POP_TITLE;
                _lbHeader.Text  = "";
                DisplayMessage("");

                _luPART_NAME.Text  = "";
                _luPART_CODE.Text  = "";
                _luORDER_ID.Text   = "";
                _luORDER_DATE.Text = "";
                _luORDER_QTY.Text  = "";
                _luNG_QTY.Text     = "";
                _luRESULT_QTY.Text = "";
                _luOK_QTY.Text     = "";

                //메뉴 화면 엔티티 설정
                //_pDQGatheringEntity = new DQGatheringEntity();
                //_pDQGatheringEntity.CORP_CODE = _pCORP_CDDE;
                //_pDQGatheringEntity.USER_CODE = _pUSER_CODE;

                //화면 설정 언어 & 명칭 변경.
                DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE);


                if (dtLanguage != null && dtLanguage.Rows.Count > 0)
                {
                    CoFAS_ControlManager.Language_Info(dtLanguage, this);
                }
                //화면 컨트롤러 설정
                InitializeControl();
                //화면 설정 언어 & 명칭 변경. ==고정==

                _pPOPSelect_INSPECT_COSMETICSEntity               = new POPSelect_INSPECT_COSMETICSEntity();
                _pPOPSelect_INSPECT_COSMETICSEntity.CORP_CODE     = _pCORP_CDDE;
                _pPOPSelect_INSPECT_COSMETICSEntity.USER_CODE     = _pUSER_CODE;
                _pPOPSelect_INSPECT_COSMETICSEntity.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                _pPOPSelect_INSPECT_COSMETICSEntity.PROCESS_CODE  = "";
                _pPOPSelect_INSPECT_COSMETICSEntity.RESOURCE_CODE = "";
                _pPOPSelect_INSPECT_COSMETICSEntity.TERMINAL_CODE = "TP010004";
                //그리드 설정

                //   double ddd = Math.Acos(0.912);


                //그리드 초기화
                //여러 그리드 사용시 마스터 그리드는 최초 실행 시에만 초기화
                if (_pFirstYN)
                {
                    //글랜젠은 컬럼 비활성
                    if (DBManager.InitDatabaseName == "coever_mes_glenzen")
                    {
                        _ucbtINSPECT_REG.Visible = false;
                    }
                    _pFirstYN = false;
                }
                GetBarcodeComPort();
                // H/W 연결 설정
                SetHardware();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }