private void MainFind_DisplayData()
        {
            try
            {
                CoFAS_DevExpressManager.SetCursor(this, Cursors.WaitCursor);

                _dtList = new GatheringMainBusiness().Gathering_Search_Mst(_pGatheringMainEntity);  // 게더링 프로그램 Header 세팅


                //for(int a = 0; a < _dtList.Rows.Count; a++)
                //{
                //    if( int.Parse(_dtList.Rows[a]["GROUPCNT"].ToString()) >1)
                //    {

                //    }
                //}



                // 받은 데이터 변환 시켜야함. 추가..

                if (_dtList != null && _dtList.Rows.Count > 0)    //값이 있으면, 설정
                {
                    try
                    {
                        ucG = new ucGatheringCtl[_dtList.Rows.Count];

                        int icnt = 0;

                        int iQty = 3;                     //열 표시 수량

                        double dRow = _dtList.Rows.Count; // 카드 수량

                        dRow = Math.Ceiling(dRow / iQty);

                        int iWidth  = 333;
                        int iHeight = 222;

                        for (int i = 0; i < _dtList.Rows.Count; i++)
                        {
                            _dtSubList = new GatheringMainBusiness().Gathering_Search_Sub(_dtList.Rows[i]);  // 게더링 프로그램 Row 세팅


                            ucG[i] = new ucGatheringCtl(_dtList.Rows[i], _dtSubList, _DtMinMax);
                        }

                        for (int a = 0; a < dRow; a++)
                        {
                            for (int b = 0; b < iQty; b++)
                            {
                                if (icnt == _dtList.Rows.Count)
                                {
                                    break;
                                }
                                CoFAS_ControlManager.InvokeIfNeeded(ucG[icnt], () => ucG[icnt].Width  = iWidth);
                                CoFAS_ControlManager.InvokeIfNeeded(ucG[icnt], () => ucG[icnt].Height = iHeight);
                                CoFAS_ControlManager.InvokeIfNeeded(ucG[icnt], () => ucG[icnt].Top    = (a * (iHeight + 10)) + 10);
                                CoFAS_ControlManager.InvokeIfNeeded(ucG[icnt], () => ucG[icnt].Left   = b * (iWidth + 10));
                                CoFAS_ControlManager.InvokeIfNeeded(_pnGMain, () => _pnGMain.Controls.Add(ucG[icnt]));
                                icnt++;
                            }
                        }
                    }
                    catch (Exception ex)
                    {
                    }
                }
                else
                {
                    DisplayMessage("조회 내역이 없습니다.");
                }
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
            finally
            {
                //_gdMAIN_VIEW.BestFitColumns();

                CoFAS_DevExpressManager.SetCursor(this, Cursors.Default);
            }
        }
        // 초기화 처리 영역
        #region ○ 메뉴 초기화 하기 - InitializeSetting()

        private void InitializeSetting()
        {
            if (Properties.Settings.Default.DB_NAME == "coever_mes_biocerra")
            {
                DisplayMessage("데이터 표시");  // 일본어 버전
            }
            else
            {
                DisplayMessage("データの表示");  // 일본어 버전
            }
            try
            {
                if (Properties.Settings.Default.DB_NAME == "coever_mes_biocerra")
                {
                    if (!XmlSetting)  //데이터 설정이 DB연결로 되어있으면
                    {
                        //메인 화면 전역 변수 처리
                        _pFONT_SETTING = new Font(_pFONT_TYPE, _pFONT_SIZE);
                        _pWINDOW_NAME  = this.Name;
                        _lbTitle.Text  = "Data Gathering System";
                        //메뉴 화면 엔티티 설정
                        _pGatheringMainEntity               = new GatheringMainEntity();
                        _pGatheringMainEntity.CORP_CODE     = _pCORP_CODE;
                        _pGatheringMainEntity.USER_CODE     = _pUSER_CODE;
                        _pGatheringMainEntity.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                        if (_ptimeSt == "") // 언어 추가해야함.
                        {
                            _ptimeSt = "시작 시간";
                            _ptimeEt = "현재 시간";
                        }

                        //화면 설정 언어 & 명칭 변경.
                        DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE);
                        if (dtLanguage != null && dtLanguage.Rows.Count > 0 && Properties.Settings.Default.DB_ID.ToString() == "MySql")
                        {
                            CoFAS_ControlManager.Language_Info(dtLanguage, this);
                        }
                        //그리드 설정
                        InitializeGrid();
                        //화면 컨트롤러 설정
                        InitializeControl();
                        //그리드 초기화
                        MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨.
                    }
                    else //데이터 설정이 Local 이면
                    {
                        _lbTitle.Text = _pCoFASXml.GetSingleNodeValue("IPC/TITLE");
                        //설정 데이터 초기화
                        Setting_Init();

                        //  LocalFind_DisplayData();
                    }
                }
                else if (Properties.Settings.Default.DB_NAME == "coever_mes_hwt")
                {
                    if (!XmlSetting)  //데이터 설정이 DB연결로 되어있으면
                    {
                        //메인 화면 전역 변수 처리
                        _pFONT_SETTING = new Font(_pFONT_TYPE, _pFONT_SIZE);
                        _pWINDOW_NAME  = this.Name;
                        _lbTitle.Text  = "Data Gathering System";
                        //메뉴 화면 엔티티 설정
                        _pGatheringMainEntity               = new GatheringMainEntity();
                        _pGatheringMainEntity.CORP_CODE     = _pCORP_CODE;
                        _pGatheringMainEntity.USER_CODE     = _pUSER_CODE;
                        _pGatheringMainEntity.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                        if (_ptimeSt == "") // 언어 추가해야함.
                        {
                            _ptimeSt = "시작 시간";
                            _ptimeEt = "현재 시간";
                        }

                        //화면 설정 언어 & 명칭 변경.
                        DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE);
                        if (dtLanguage != null && dtLanguage.Rows.Count > 0 && Properties.Settings.Default.DB_ID.ToString() == "MySql")
                        {
                            CoFAS_ControlManager.Language_Info(dtLanguage, this);
                        }
                        //그리드 설정
                        InitializeGrid();
                        //화면 컨트롤러 설정
                        InitializeControl();
                        //그리드 초기화
                        MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨.
                    }
                    else //데이터 설정이 Local 이면
                    {
                        _lbTitle.Text = _pCoFASXml.GetSingleNodeValue("IPC/TITLE");
                        //설정 데이터 초기화
                        Setting_Init();

                        //  LocalFind_DisplayData();
                    }
                }
                else
                {
                    if (!XmlSetting)  //데이터 설정이 DB연결로 되어있으면
                    {
                        //메인 화면 전역 변수 처리
                        _pFONT_SETTING = new Font(_pFONT_TYPE, _pFONT_SIZE);
                        _pWINDOW_NAME  = this.Name;
                        _lbTitle.Text  = "Data Gathering System";
                        //메뉴 화면 엔티티 설정
                        _pGatheringMainEntity               = new GatheringMainEntity();
                        _pGatheringMainEntity.CORP_CODE     = _pCORP_CODE;
                        _pGatheringMainEntity.USER_CODE     = _pUSER_CODE;
                        _pGatheringMainEntity.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                        if (_ptimeSt == "") // 언어 추가해야함.
                        {
                            _ptimeSt = "開始時間";
                            _ptimeEt = "現在時刻";
                        }

                        //화면 설정 언어 & 명칭 변경.
                        DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE);
                        if (dtLanguage != null && dtLanguage.Rows.Count > 0 && Properties.Settings.Default.DB_ID.ToString() == "MySql")
                        {
                            CoFAS_ControlManager.Language_Info(dtLanguage, this);
                        }
                        //그리드 설정
                        InitializeGrid();
                        //화면 컨트롤러 설정
                        InitializeControl();
                        //그리드 초기화
                        MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨.
                    }
                    else //데이터 설정이 Local 이면
                    {
                        _lbTitle.Text = _pCoFASXml.GetSingleNodeValue("IPC/TITLE");
                        //설정 데이터 초기화
                        Setting_Init();

                        //  LocalFind_DisplayData();
                    }
                }
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
Exemple #3
0
        private void InitializeSetting()
        {
            ////메인 화면 전역 변수 처리


            //메인 화면 공통 메세지 처리           _아래애 MainForm지우기
            _pMSG_SEARCH           = _pMessageEntity.MSG_SEARCH;
            _pMSG_SEARCH_EMPT      = _pMessageEntity.MSG_SEARCH_EMPT;
            _pMSG_SAVE_QUESTION    = _pMessageEntity.MSG_SAVE_QUESTION;
            _pMSG_SAVE             = _pMessageEntity.MSG_SAVE;
            _pMSG_SAVE_ERROR       = _pMessageEntity.MSG_SAVE_ERROR;
            _pMSG_DELETE_QUESTION  = _pMessageEntity.MSG_DELETE_QUESTION;
            _pMSG_DELETE           = _pMessageEntity.MSG_DELETE;
            _pMSG_DELETE_ERROR     = _pMessageEntity.MSG_DELETE_ERROR;
            _pMSG_DELETE_COMPLETE  = _pMessageEntity.MSG_DELETE_COMPLETE;
            _pMSG_INPUT_DATA       = _pMessageEntity.MSG_INPUT_DATA;
            _pMSG_INPUT_DATA_ERROR = _pMessageEntity.MSG_INPUT_DATA_ERROR;
            _pMSG_WORKING          = _pMessageEntity.MSG_WORKING;
            _pMSG_RESET_QUESTION   = _pMessageEntity.MSG_RESET_QUESTION;
            _pMSG_EXIT_QUESTION    = _pMessageEntity.MSG_EXIT_QUESTION;
            _pMSG_SELECT           = _pMessageEntity.MSG_SELECT;
            //추가
            _pMSG_PLZ_CONNECT_FTP           = _pMessageEntity.MSG_PLZ_CONNECT_FTP;
            _pMSG_AGAIN_INPUT_DATA          = _pMessageEntity.MSG_AGAIN_INPUT_DATA;
            _pMSG_DOWNLOAD_COMPLETE         = _pMessageEntity.MSG_DOWNLOAD_COMPLETE;
            _pMSG_SEARCH_EMPT_DETAIL        = _pMessageEntity.MSG_SEARCH_EMPT_DETAIL;
            _pMSG_SPLITQTY_LARGE_MORE       = _pMessageEntity.MSG_SPLITQTY_LARGE_MORE;
            _pMSG_DELETE_ERROR_NO_DATA      = _pMessageEntity.MSG_DELETE_ERROR_NO_DATA;
            _pMSG_ORDERQTY_LARGE_THAN_0     = _pMessageEntity.MSG_ORDERQTY_LARGE_THAN_0;
            _pMSG_PLAN_LARGE_THAN_ORDER     = _pMessageEntity.MSG_PLAN_LARGE_THAN_ORDER;
            _pMSG_DELETE_ERROR_CONNECT_FTP  = _pMessageEntity.MSG_DELETE_ERROR_CONNECT_FTP;
            _pMSG_INPUT_LESS_THAN_NOTOUTQTY = _pMessageEntity.MSG_INPUT_LESS_THAN_NOTOUTQTY;
            _pMSG_LOAD_DATA                    = _pMessageEntity.MSG_LOAD_DATA;
            _pMSG_NEW_REG_GUBN                 = _pMessageEntity.MSG_NEW_REG_GUBN;
            _pMSG_INPUT_NUMERIC                = _pMessageEntity.MSG_INPUT_NUMERIC;
            _pMSG_NO_SELETED_ITEM              = _pMessageEntity.MSG_NO_SELETED_ITEM;
            _pMSG_EXIST_COMPANY_ID             = _pMessageEntity.MSG_EXIST_COMPANY_ID;
            _pMSG_NOT_DELETE_DATA_IN           = _pMessageEntity.MSG_NOT_DELETE_DATA_IN;
            _pMSG_NOT_MODIFY_DATA_IN           = _pMessageEntity.MSG_NOT_MODIFY_DATA_IN;
            _pMSG_SELECT_NEWREG_SAVE           = _pMessageEntity.MSG_SELECT_NEWREG_SAVE;
            _pMSG_INPUT_LARGER_THAN_0          = _pMessageEntity.MSG_INPUT_LARGER_THAN_0;
            _pMSG_NOT_DELETE_DATA_OUT          = _pMessageEntity.MSG_NOT_DELETE_DATA_OUT;
            _pMSG_NOT_MODIFY_DATA_OUT          = _pMessageEntity.MSG_NOT_MODIFY_DATA_OUT;
            _pMSG_CANCLE_NEWREG_MODIFY         = _pMessageEntity.MSG_CANCLE_NEWREG_MODIFY;
            _pMSG_NO_SELETED_ITEM_OR_NO_SAVE   = _pMessageEntity.MSG_NO_SELETED_ITEM_OR_NO_SAVE;
            _pMSG_NO_INPUT_LAGER_THAN_NOTINQTY = _pMessageEntity.MSG_NO_INPUT_LAGER_THAN_NOTINQTY;
            _pMSG_REG_DATA                 = _pMessageEntity.MSG_REG_DATA;
            _pMSG_ADD_FAVORITE_ITEM        = _pMessageEntity.MSG_ADD_FAVORITE_ITEM;
            _pMSG_CHECK_SEARCH_DATE        = _pMessageEntity.MSG_CHECK_SEARCH_DATE;
            _pMSG_NOT_DISPLAY_ERROR        = _pMessageEntity.MSG_NOT_DISPLAY_ERROR;
            _pMSG_NO_EXIST_INPUT_DATA      = _pMessageEntity.MSG_NO_EXIST_INPUT_DATA;
            _pMSG_NOT_DISPLAY_NOT_SAVE     = _pMessageEntity.MSG_NOT_DISPLAY_NOT_SAVE;
            _pMSG_CHECK_VALID_ITEM         = _pMessageEntity.MSG_CHECK_VALID_ITEM;
            _pMSG_DELETE_FAVORITE_ITEM     = _pMessageEntity.MSG_DELETE_FAVORITE_ITEM;
            _pMSG_NOT_EXIST_PRINTING_EXCEL = _pMessageEntity.MSG_NOT_EXIST_PRINTING_EXCEL;
            _pMSG_SELECT_DOWNLOAD_TEMPLETE = _pMessageEntity.MSG_SELECT_DOWNLOAD_TEMPLETE;
            _pMSG_RESET_COMPLETE           = _pMessageEntity.MSG_RESET_COMPLETE;

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

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

            DateTime pDateTime      = DateTime.Today;
            DateTime pFirstDateTime = pDateTime.AddDays(1 - pDateTime.Day);

            // _luTORDER_DATE.FromDateTime = pFirstDateTime;
            // _luTORDER_DATE.ToDateTime = DateTime.Now;
            //_luORDER_DATE1.DateTime = pFirstDateTime; //from
            //_luORDER_DATE2.DateTime = DateTime.Now; //to
            _pucMaterialStockInfoPopupEntity = new ucMaterialStockInfoPopupEntity();
            //그리드 설정 ==고정==

            _gdMAIN_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdMAIN, _gdMAIN_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdMAIN.Name.ToString()));

            _pCRUD = "";
            //_gdMAIN_VIEW.CellValueChanging += _gdMAIN_VIEW_CellValueChanging;
            _gdMAIN_VIEW.CellValueChanged += _gdMAIN_VIEW_CellValueChanged;
            _gdMAIN_VIEW.RowCellClick     += _gdMAIN_VIEW_RowCellClick;
            _luINOUT_CODE.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "COMMON_CODE", "MR05", "", "").Tables[0], 0, 0, "");

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

            //_gdMAIN_VIEW.DoubleClick += _gdMAIN_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수

            //그리드 설정 ==고정==
        }
        // 초기화 처리 영역
        #region ○ 메뉴 초기화 하기 - InitializeSetting()

        private void InitializeSetting()
        {
            try
            {
                //상속 화면 패널 사용 유무
                _pnHeader.Visible  = true;
                _pnContent.Visible = true;
                _pnLeft.Visible    = true;
                _pnLeft.Width      = 250;

                //메인 화면 전역 변수 처리
                _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);

                _pUSER_GRANT = MainForm.UserEntity.USER_GRANT;

                _pWINDOW_NAME = this.Name;

                //메인 화면 공통 메세지 처리
                _pMSG_SEARCH           = MainForm.MessageEntity.MSG_SEARCH;
                _pMSG_SEARCH_EMPT      = MainForm.MessageEntity.MSG_SEARCH_EMPT;
                _pMSG_SAVE_QUESTION    = MainForm.MessageEntity.MSG_SAVE_QUESTION;
                _pMSG_SAVE             = MainForm.MessageEntity.MSG_SAVE;
                _pMSG_SAVE_ERROR       = MainForm.MessageEntity.MSG_SAVE_ERROR;
                _pMSG_DELETE_QUESTION  = MainForm.MessageEntity.MSG_DELETE_QUESTION;
                _pMSG_DELETE           = MainForm.MessageEntity.MSG_DELETE;
                _pMSG_DELETE_ERROR     = MainForm.MessageEntity.MSG_DELETE_ERROR;
                _pMSG_DELETE_COMPLETE  = MainForm.MessageEntity.MSG_DELETE_COMPLETE;
                _pMSG_INPUT_DATA       = MainForm.MessageEntity.MSG_INPUT_DATA;
                _pMSG_INPUT_DATA_ERROR = MainForm.MessageEntity.MSG_INPUT_DATA_ERROR;
                _pMSG_WORKING          = MainForm.MessageEntity.MSG_WORKING;
                _pMSG_RESET_QUESTION   = MainForm.MessageEntity.MSG_RESET_QUESTION;
                _pMSG_EXIT_QUESTION    = MainForm.MessageEntity.MSG_EXIT_QUESTION;
                _pMSG_SELECT           = MainForm.MessageEntity.MSG_SELECT;
                //추가
                _pMSG_PLZ_CONNECT_FTP           = MainForm.MessageEntity.MSG_PLZ_CONNECT_FTP;
                _pMSG_AGAIN_INPUT_DATA          = MainForm.MessageEntity.MSG_AGAIN_INPUT_DATA;
                _pMSG_DOWNLOAD_COMPLETE         = MainForm.MessageEntity.MSG_DOWNLOAD_COMPLETE;
                _pMSG_SEARCH_EMPT_DETAIL        = MainForm.MessageEntity.MSG_SEARCH_EMPT_DETAIL;
                _pMSG_SPLITQTY_LARGE_MORE       = MainForm.MessageEntity.MSG_SPLITQTY_LARGE_MORE;
                _pMSG_DELETE_ERROR_NO_DATA      = MainForm.MessageEntity.MSG_DELETE_ERROR_NO_DATA;
                _pMSG_ORDERQTY_LARGE_THAN_0     = MainForm.MessageEntity.MSG_ORDERQTY_LARGE_THAN_0;
                _pMSG_PLAN_LARGE_THAN_ORDER     = MainForm.MessageEntity.MSG_PLAN_LARGE_THAN_ORDER;
                _pMSG_DELETE_ERROR_CONNECT_FTP  = MainForm.MessageEntity.MSG_DELETE_ERROR_CONNECT_FTP;
                _pMSG_INPUT_LESS_THAN_NOTOUTQTY = MainForm.MessageEntity.MSG_INPUT_LESS_THAN_NOTOUTQTY;
                _pMSG_LOAD_DATA                    = MainForm.MessageEntity.MSG_LOAD_DATA;
                _pMSG_NEW_REG_GUBN                 = MainForm.MessageEntity.MSG_NEW_REG_GUBN;
                _pMSG_INPUT_NUMERIC                = MainForm.MessageEntity.MSG_INPUT_NUMERIC;
                _pMSG_NO_SELETED_ITEM              = MainForm.MessageEntity.MSG_NO_SELETED_ITEM;
                _pMSG_EXIST_COMPANY_ID             = MainForm.MessageEntity.MSG_EXIST_COMPANY_ID;
                _pMSG_NOT_DELETE_DATA_IN           = MainForm.MessageEntity.MSG_NOT_DELETE_DATA_IN;
                _pMSG_NOT_MODIFY_DATA_IN           = MainForm.MessageEntity.MSG_NOT_MODIFY_DATA_IN;
                _pMSG_SELECT_NEWREG_SAVE           = MainForm.MessageEntity.MSG_SELECT_NEWREG_SAVE;
                _pMSG_INPUT_LARGER_THAN_0          = MainForm.MessageEntity.MSG_INPUT_LARGER_THAN_0;
                _pMSG_NOT_DELETE_DATA_OUT          = MainForm.MessageEntity.MSG_NOT_DELETE_DATA_OUT;
                _pMSG_NOT_MODIFY_DATA_OUT          = MainForm.MessageEntity.MSG_NOT_MODIFY_DATA_OUT;
                _pMSG_CANCLE_NEWREG_MODIFY         = MainForm.MessageEntity.MSG_CANCLE_NEWREG_MODIFY;
                _pMSG_NO_SELETED_ITEM_OR_NO_SAVE   = MainForm.MessageEntity.MSG_NO_SELETED_ITEM_OR_NO_SAVE;
                _pMSG_NO_INPUT_LAGER_THAN_NOTINQTY = MainForm.MessageEntity.MSG_NO_INPUT_LAGER_THAN_NOTINQTY;
                _pMSG_REG_DATA                 = MainForm.MessageEntity.MSG_REG_DATA;
                _pMSG_ADD_FAVORITE_ITEM        = MainForm.MessageEntity.MSG_ADD_FAVORITE_ITEM;
                _pMSG_CHECK_SEARCH_DATE        = MainForm.MessageEntity.MSG_CHECK_SEARCH_DATE;
                _pMSG_NOT_DISPLAY_ERROR        = MainForm.MessageEntity.MSG_NOT_DISPLAY_ERROR;
                _pMSG_NO_EXIST_INPUT_DATA      = MainForm.MessageEntity.MSG_NO_EXIST_INPUT_DATA;
                _pMSG_NOT_DISPLAY_NOT_SAVE     = MainForm.MessageEntity.MSG_NOT_DISPLAY_NOT_SAVE;
                _pMSG_CHECK_VALID_ITEM         = MainForm.MessageEntity.MSG_CHECK_VALID_ITEM;
                _pMSG_DELETE_FAVORITE_ITEM     = MainForm.MessageEntity.MSG_DELETE_FAVORITE_ITEM;
                _pMSG_NOT_EXIST_PRINTING_EXCEL = MainForm.MessageEntity.MSG_NOT_EXIST_PRINTING_EXCEL;
                _pMSG_SELECT_DOWNLOAD_TEMPLETE = MainForm.MessageEntity.MSG_SELECT_DOWNLOAD_TEMPLETE;
                _pMSG_RESET_COMPLETE           = MainForm.MessageEntity.MSG_RESET_COMPLETE;


                //메뉴 화면 엔티티 설정
                _pGroupMenuAuthorityEntity = new GroupMenuAuthorityEntity();
                //_pMenuAuthorityEntity.CORP_CODE = _pCORP_CODE;
                _pGroupMenuAuthorityEntity.USER_CODE     = _pUSER_CODE;
                _pGroupMenuAuthorityEntity.LANGUAGE_TYPE = _pLANGUAGE_TYPE;


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

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

                //메인 화면 공용 버튼 설정
                //if (_pFirstYN)
                //{
                //    InitializeButtons();
                //}

                //그리드 설정
                InitializeGrid();

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

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

                //컨트롤러 별 추가 이벤트 생성은 화면 설정 마지막에 진행
                _gdMAIN_VIEW.RowCellClick += _gdMAIN_VIEW_RowCellClick;
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));

                //throw pExceptionManager;
            }
            //catch (Exception pException)
            //{
            //    throw new ExceptionManager(this, "InputData_Save(DataTable dtSave)", pException);
            //}

            //catch (ExceptionManager pExceptionManager)
            //{
            //    throw pExceptionManager;
            //}
            //catch (Exception pException)
            //{
            //    throw new ExceptionManager(this, "InitializeSetting()", pException);
            //}
        }
        // 초기화 처리 영역
        #region ○ 메뉴 초기화 하기 - InitializeSetting()

        private void InitializeSetting()
        {
            try
            {
                //상속 화면 패널 사용 유무
                _pnHeader.Visible = true;
                _pnContent.Visible = true;
                _pnLeft.Visible = true;
                _pnLeft.Width = 250;

                //메인 화면 전역 변수 처리
                _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);

                _pUSER_GRANT = MainForm.UserEntity.USER_GRANT;

                _pWINDOW_NAME = this.Name;
                _pMENU_NAME = this.Text;

                //메인 화면 공통 메세지 처리
                _pMSG_SEARCH = MainForm.MessageEntity.MSG_SEARCH;
                _pMSG_SEARCH_EMPT = MainForm.MessageEntity.MSG_SEARCH_EMPT;
                _pMSG_SAVE_QUESTION = MainForm.MessageEntity.MSG_SAVE_QUESTION;
                _pMSG_SAVE = MainForm.MessageEntity.MSG_SAVE;
                _pMSG_SAVE_ERROR = MainForm.MessageEntity.MSG_SAVE_ERROR;
                _pMSG_DELETE_QUESTION = MainForm.MessageEntity.MSG_DELETE_QUESTION;
                _pMSG_DELETE = MainForm.MessageEntity.MSG_DELETE;
                _pMSG_DELETE_ERROR = MainForm.MessageEntity.MSG_DELETE_ERROR;
                _pMSG_DELETE_COMPLETE = MainForm.MessageEntity.MSG_DELETE_COMPLETE;
                _pMSG_INPUT_DATA = MainForm.MessageEntity.MSG_INPUT_DATA;
                _pMSG_INPUT_DATA_ERROR = MainForm.MessageEntity.MSG_INPUT_DATA_ERROR;
                _pMSG_WORKING = MainForm.MessageEntity.MSG_WORKING;
                _pMSG_RESET_QUESTION = MainForm.MessageEntity.MSG_RESET_QUESTION;
                _pMSG_EXIT_QUESTION = MainForm.MessageEntity.MSG_EXIT_QUESTION;
                _pMSG_SELECT = MainForm.MessageEntity.MSG_SELECT;
                //추가
                _pMSG_PLZ_CONNECT_FTP = MainForm.MessageEntity.MSG_PLZ_CONNECT_FTP;
                _pMSG_AGAIN_INPUT_DATA = MainForm.MessageEntity.MSG_AGAIN_INPUT_DATA;
                _pMSG_DOWNLOAD_COMPLETE = MainForm.MessageEntity.MSG_DOWNLOAD_COMPLETE;
                _pMSG_SEARCH_EMPT_DETAIL = MainForm.MessageEntity.MSG_SEARCH_EMPT_DETAIL;
                _pMSG_SPLITQTY_LARGE_MORE = MainForm.MessageEntity.MSG_SPLITQTY_LARGE_MORE;
                _pMSG_DELETE_ERROR_NO_DATA = MainForm.MessageEntity.MSG_DELETE_ERROR_NO_DATA;
                _pMSG_ORDERQTY_LARGE_THAN_0 = MainForm.MessageEntity.MSG_ORDERQTY_LARGE_THAN_0;
                _pMSG_PLAN_LARGE_THAN_ORDER = MainForm.MessageEntity.MSG_PLAN_LARGE_THAN_ORDER;
                _pMSG_DELETE_ERROR_CONNECT_FTP = MainForm.MessageEntity.MSG_DELETE_ERROR_CONNECT_FTP;
                _pMSG_INPUT_LESS_THAN_NOTOUTQTY = MainForm.MessageEntity.MSG_INPUT_LESS_THAN_NOTOUTQTY;
                _pMSG_LOAD_DATA = MainForm.MessageEntity.MSG_LOAD_DATA;
                _pMSG_NEW_REG_GUBN = MainForm.MessageEntity.MSG_NEW_REG_GUBN;
                _pMSG_INPUT_NUMERIC = MainForm.MessageEntity.MSG_INPUT_NUMERIC;
                _pMSG_NO_SELETED_ITEM = MainForm.MessageEntity.MSG_NO_SELETED_ITEM;
                _pMSG_EXIST_COMPANY_ID = MainForm.MessageEntity.MSG_EXIST_COMPANY_ID;
                _pMSG_NOT_DELETE_DATA_IN = MainForm.MessageEntity.MSG_NOT_DELETE_DATA_IN;
                _pMSG_NOT_MODIFY_DATA_IN = MainForm.MessageEntity.MSG_NOT_MODIFY_DATA_IN;
                _pMSG_SELECT_NEWREG_SAVE = MainForm.MessageEntity.MSG_SELECT_NEWREG_SAVE;
                _pMSG_INPUT_LARGER_THAN_0 = MainForm.MessageEntity.MSG_INPUT_LARGER_THAN_0;
                _pMSG_NOT_DELETE_DATA_OUT = MainForm.MessageEntity.MSG_NOT_DELETE_DATA_OUT;
                _pMSG_NOT_MODIFY_DATA_OUT = MainForm.MessageEntity.MSG_NOT_MODIFY_DATA_OUT;
                _pMSG_CANCLE_NEWREG_MODIFY = MainForm.MessageEntity.MSG_CANCLE_NEWREG_MODIFY;
                _pMSG_NO_SELETED_ITEM_OR_NO_SAVE = MainForm.MessageEntity.MSG_NO_SELETED_ITEM_OR_NO_SAVE;
                _pMSG_NO_INPUT_LAGER_THAN_NOTINQTY = MainForm.MessageEntity.MSG_NO_INPUT_LAGER_THAN_NOTINQTY;
                _pMSG_REG_DATA = MainForm.MessageEntity.MSG_REG_DATA;
                _pMSG_ADD_FAVORITE_ITEM = MainForm.MessageEntity.MSG_ADD_FAVORITE_ITEM;
                _pMSG_CHECK_SEARCH_DATE = MainForm.MessageEntity.MSG_CHECK_SEARCH_DATE;
                _pMSG_NOT_DISPLAY_ERROR = MainForm.MessageEntity.MSG_NOT_DISPLAY_ERROR;
                _pMSG_NO_EXIST_INPUT_DATA = MainForm.MessageEntity.MSG_NO_EXIST_INPUT_DATA;
                _pMSG_NOT_DISPLAY_NOT_SAVE = MainForm.MessageEntity.MSG_NOT_DISPLAY_NOT_SAVE;
                _pMSG_CHECK_VALID_ITEM = MainForm.MessageEntity.MSG_CHECK_VALID_ITEM;
                _pMSG_DELETE_FAVORITE_ITEM = MainForm.MessageEntity.MSG_DELETE_FAVORITE_ITEM;
                _pMSG_NOT_EXIST_PRINTING_EXCEL = MainForm.MessageEntity.MSG_NOT_EXIST_PRINTING_EXCEL;
                _pMSG_SELECT_DOWNLOAD_TEMPLETE = MainForm.MessageEntity.MSG_SELECT_DOWNLOAD_TEMPLETE;
                _pMSG_RESET_COMPLETE = MainForm.MessageEntity.MSG_RESET_COMPLETE;


                //메뉴 화면 엔티티 설정
                _pRuleGeneratorEntity = new RuleGeneratorEntity();
                _pRuleOptionSettingEntity = new RuleOptionSettingEntity();

                //화면 설정 언어 & 명칭 변경.
                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();

                //그리드 초기화 

                //여러 그리드 사용시 마스터 그리드는 최초 실행 시에만 초기화
                if (_pFirstYN)
                {
                    _pRuleGeneratorEntity.CRUD = "";

                    _pRuleGeneratorEntity.LANGUAGE_TYPE = _pLANGUAGE_TYPE;

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

                    _pFirstYN = false;
                }

                _pRuleGeneratorEntity.CRUD = "";  // 임시 하드코딩  시연후 수정
                _pRuleGeneratorEntity.WORKSHOP_CODE = "";  // 임시 하드코딩  시연후 수정
                _pRuleGeneratorEntity.RESOURCE_CODE = "";

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

                _gdMAIN_VIEW.RowCellClick += _gdMAIN_VIEW_RowCellClick;

                _luIRULEOPTION.Click += Form_FormRuleOptionButtonClicked;
                _luIFADD.Click += Form_FormAddButtonClicked;
                _luIFAND.Click += Form_FormANDButtonClicked;
                _luIFOR.Click += Form_FormORButtonClicked;
                _luIFTHEN.Click += Form_FormTHENButtonClicked;
                _luIFTRUE.Click += Form_FormTRUEButtonClicked;
                _luIFFALSE.Click += Form_FormFALSEButtonClicked;

                _luIFCODITION.ValueChanged += Form_FormluIFCODITION_SelectedIndexChanged;

                _luIFAND.Enabled = false;
                _luIFOR.Enabled = false;
                _luIFTHEN.Enabled = false;
                _luIFTRUE.Enabled = false;
                _luIFFALSE.Enabled = false;
                _luIRULEOPTION.Enabled = false;
                _luIFADD.Enabled = false;

                _gdMAIN_VIEW.OptionsBehavior.Editable = false;
                _gdMAIN_VIEW.OptionsBehavior.ReadOnly = true; // 강제 ReadOnly true

            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }