Пример #1
0
        private void InitializeSetting()
        {
            try
            {
                //_luCORP_CODE.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", "COMMON_CODE", "MM11", "", "").Tables[0], 0, 0, "");

                if (_pFirstYN)
                {
                    _luFILE_TYPE.ItemAdd("All");

                    _luFILE_TYPE.ItemAdd("POP");
                    _luFILE_TYPE.ItemAdd("MES");
                    _luFILE_TYPE.ItemAdd("Monitoring");

                    _luFILE_TYPE.SelectedIndex = 0;

                    _tempGrid = new CoFAS_DevGridManager();

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

                    _pFirstYN = false;
                }

                MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨.
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
 private void InitializeGrid()
 {
     try
     {
         //그리드 초기화
         //여러 그리드 사용시 마스터 그리드는 최초 실행 시에만 초기화
         if (_pFirstYN)
         {
             _TempGridView = new CoFAS_DevGridManager();
             _TempGridView._OnButtonPressed += CoFAS_DevExpressManager_OnButtonPressed;
             _gdMAIN_VIEW = _TempGridView.Grid_Setting(_gdMAIN, _gdMAIN_VIEW, _pFONT_SETTING, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdMAIN.Name.ToString()));
         }
     }
     catch (ExceptionManager pExceptionManager)
     {
         CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
     }
 }
 private void InitializeControl()
 {
     try
     {
         //그리드 초기화
         //여러 그리드 사용시 마스터 그리드는 최초 실행 시에만 초기화
         if (_pFirstYN)
         {
             _tempGridMain1 = new CoFAS_DevGridManager();
             _gdMAIN_VIEW   = _tempGridMain1.Grid_Setting(_gdMAIN, _gdMAIN_VIEW, _pFONT_SETTING, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdMAIN.Name.ToString()));
             // _gdMAIN_VIEW.OptionsView.RowAutoHeight = true;
         }
     }
     catch (ExceptionManager pExceptionManager)
     {
         CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
     }
     finally
     {
     }
 }
        private void ucMaterialOrderRegister_Request_T01_Load(object sender, EventArgs e)
        {
            try
            {
                _pMessageEntity = new MessageEntity();
                DataTable dtMessage = new MessageBusiness().MessageValue_Info(_pLANGUAGE_TYPE);
                if (dtMessage != null)
                {
                    _pMessageEntity.MSG_SEARCH           = dtMessage.Rows[0]["MSG_SEARCH"].ToString();
                    _pMessageEntity.MSG_SEARCH_EMPT      = dtMessage.Rows[0]["MSG_SEARCH_EMPT"].ToString();
                    _pMessageEntity.MSG_SAVE_QUESTION    = dtMessage.Rows[0]["MSG_SAVE_QUESTION"].ToString();
                    _pMessageEntity.MSG_SAVE             = dtMessage.Rows[0]["MSG_SAVE"].ToString();
                    _pMessageEntity.MSG_SAVE_ERROR       = dtMessage.Rows[0]["MSG_SAVE_ERROR"].ToString();
                    _pMessageEntity.MSG_DELETE_QUESTION  = dtMessage.Rows[0]["MSG_DELETE_QUESTION"].ToString();
                    _pMessageEntity.MSG_DELETE           = dtMessage.Rows[0]["MSG_DELETE"].ToString();
                    _pMessageEntity.MSG_DELETE_ERROR     = dtMessage.Rows[0]["MSG_DELETE_ERROR"].ToString();
                    _pMessageEntity.MSG_DELETE_COMPLETE  = dtMessage.Rows[0]["MSG_DELETE_COMPLETE"].ToString();
                    _pMessageEntity.MSG_INPUT_DATA       = dtMessage.Rows[0]["MSG_INPUT_DATA"].ToString();
                    _pMessageEntity.MSG_INPUT_DATA_ERROR = dtMessage.Rows[0]["MSG_INPUT_DATA_ERROR"].ToString();
                    _pMessageEntity.MSG_WORKING          = dtMessage.Rows[0]["MSG_WORKING"].ToString();
                    _pMessageEntity.MSG_RESET_QUESTION   = dtMessage.Rows[0]["MSG_RESET_QUESTION"].ToString();
                    _pMessageEntity.MSG_EXIT_QUESTION    = dtMessage.Rows[0]["MSG_EXIT_QUESTION"].ToString();
                    _pMessageEntity.MSG_SELECT           = dtMessage.Rows[0]["MSG_SELECT"].ToString();
                    _pMessageEntity.MSG_RESET_COMPLETE   = dtMessage.Rows[0]["MSG_RESET_COMPLETE"].ToString();
                }

                _TempGridView  = new CoFAS_DevGridManager();
                _TempGridView2 = new CoFAS_DevGridManager();

                InitializeSetting();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
            finally
            {
                DevExpress.Utils.AppearanceObject.DefaultFont = fntPARENT_FONT;//화면에 모든 항목 폰트 재설정
            }
        }