Ejemplo n.º 1
0
 /// <summary>
 /// 언어 정보 조회
 /// </summary>
 public DataTable SensorView_Info_Filename(SensorViewEntity pSensorViewEntity)
 {
     try
     {
         using (DBManager pDBManager = new DBManager())
         {
             DataTable pDataTable = new SensorViewProvider(pDBManager).SensorView_Info_Filename(pSensorViewEntity);
             return pDataTable;
         }
     }
     catch (ExceptionManager pExceptionManager)
     {
         throw pExceptionManager;
     }
     catch (Exception pException)
     {
         throw new ExceptionManager(this, "SensorDataSearch_Info_Filename(SensorDataSearchEntity pSensorDataSearchEntity)", pException);
     }
 }
Ejemplo n.º 2
0
        // 초기화 처리 영역
        #region ○ 메뉴 초기화 하기 - InitializeSetting()

        private void InitializeSetting()
        {
            try
            {
                //상속 화면 패널 사용 유무
                _pnHeader.Visible  = true;
                _pnContent.Visible = true;
                _pnLeft.Visible    = false;
                _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);
                _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;

                _pUSER_GRANT = MainForm.UserEntity.USER_GRANT;

                //메인 화면 공통 메세지 처리

                _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_NO_SELECT_FILEFORM = MainForm.MessageEntity.MSG_NO_SELECT_FILEFORM;

                //추가

                _pMSG_CHECK_VALID_ITEM = MainForm.MessageEntity.MSG_CHECK_VALID_ITEM;

                _pMSG_RESET_COMPLETE = MainForm.MessageEntity.MSG_RESET_COMPLETE;


                _pWINDOW_NAME = this.Name;

                //메뉴 화면 엔티티 설정
                _pSensorViewEntity = new SensorViewEntity();
                //_pResultStatusDataEntity.CORP_CODE = _pCORP_CODE;
                _pSensorViewEntity.USER_CODE     = _pUSER_CODE;
                _pSensorViewEntity.WINDOW_NAME   = _pWINDOW_NAME;
                _pSensorViewEntity.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);
                }

                //그리드 설정
                InitializeGrid();

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

                //그리드 초기화

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


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


                //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));
            }
        }