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_RESET_COMPLETE = _pMessageEntity.MSG_RESET_COMPLETE; //메뉴 화면 엔티티 설정 _pucProcessDocumentListPopupEntity = new ucProcessDocumentListPopupEntity(); _pucProcessDocumentListPopupEntity.CORP_CODE = _pCORP_CODE; _pucProcessDocumentListPopupEntity.USER_CODE = _pUSER_CODE; _pucProcessDocumentListPopupEntity.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); } _luPROCESS_CODE.Text = ARRAY_CODE[0].ToString(); _luPROCESS_NAME.Text = ARRAY_CODE[1].ToString(); DateTime pDateTime = DateTime.Today; DateTime pFirstDateTime = pDateTime.AddDays(1 - pDateTime.Day); //그리드 설정 ==고정== _gdMAIN_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdMAIN, _gdMAIN_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdMAIN.Name.ToString())); _gdSUB_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdSUB, _gdSUB_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdSUB.Name.ToString())); CoFAS_DevGridEventManager.OnViewDoubleClick += CoFAS_DevGridEventManager_OnViewDoubleClick; CoFAS_DevExpressManager._OnButtonPressed += CoFAS_DevExpressManager__OnButtonPressed; _luDOCUMENT_TYPE.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "DOCUMENT_TYPE", "", "", "").Tables[0], 0, 0, "", true); _luUSE_YN.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "USE_YN", "", "", "").Tables[0], 0, 1, "", true); _luDOCUMENT_USE_YN.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "USE_YN", "", "", "").Tables[0], 0, 1, "", true); MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. SubFind_DisplayData(); }
private void InitializeSetting() { _pucTerminalDetailInfoPopup_Entity = new ucTerminalDetailInfoPopup_Entity(); _pucTerminalDetailInfoPopup_Entity.CORP_CODE = _pCORP_CODE; _pucTerminalDetailInfoPopup_Entity.USER_CODE = _pUSER_CODE; _pucTerminalDetailInfoPopup_Entity.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); } //그리드 설정 ==고정== _gdMAIN_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdMAIN, _gdMAIN_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdMAIN.Name.ToString())); //컨트롤러 별 추가 이벤트 생성은 화면 설정 마지막에 진행 _gdMAIN_VIEW.RowCellClick += _gdMAIN_VIEW_RowCellClick; _pucTerminalDetailInfoPopup_Entity.CRUD = "R"; _pucTerminalDetailInfoPopup_Entity.TERMINAL_CODE = _luTERMINAL_CODE.Text; //MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. InitializeControl(); //_gdMAIN_VIEW.DoubleClick += _gdMAIN_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수 //그리드 설정 ==고정== }
private void InitializeSetting() { //상속 화면 패널 사용 유무 //화면 설정 언어 & 명칭 변경. ==고정== DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE); if (dtLanguage != null && dtLanguage.Rows.Count > 0) { CoFAS_ControlManager.Language_Info(dtLanguage, this); } radioGroup1.SelectedIndexChanged += RadioGroup1_SelectedIndexChanged; //그리드 설정 ==고정== if (_pFirstYN) { // 사용 가능한 COM 조회 for (int i = 0; i < serial_port.Length; i++) { _luCOM_TYPE.ItemAdd(serial_port[i]); } //GetBarcodeComPort(); _luCOM_TYPE.SelectedItem = _COM_PORT; // _luCOM_TYPE.SelectedIndex = 0; _COM_STATUS.Text = ""; _luPRINT_SEQ.Text = ""; _luPRINT_SEQ.Properties.MaxLength = 4; SetHardware(); _pFirstYN = false; } //그리드 설정 ==고정== }
private void InitializeSetting() { _pucPartProcessMapping_PopUpEntity = new ucPartProcessMapping_PopUpEntity(); _pucPartProcessMapping_PopUpEntity.CORP_CODE = _pCORP_CODE; _pucPartProcessMapping_PopUpEntity.USER_CODE = _pUSER_CODE; _pucPartProcessMapping_PopUpEntity.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); } //그리드 설정 ==고정== _gdMAIN_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdMAIN, _gdMAIN_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdMAIN.Name.ToString())); _pucPartProcessMapping_PopUpEntity.CRUD = "R"; MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. //_gdMAIN_VIEW.DoubleClick += _gdMAIN_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수 //그리드 설정 ==고정== }
private void InitializeSetting() { //상속 화면 패널 사용 유무 //화면 설정 언어 & 명칭 변경. ==고정== DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE); if (dtLanguage != null && dtLanguage.Rows.Count > 0) { CoFAS_ControlManager.Language_Info(dtLanguage, this); } //그리드 설정 ==고정== _luPART_TYPE.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "PART_TYPE_PRODUCT_T01", "", "", "").Tables[0], 0, 0, ""); _luPART_TYPE.ItemIndex = 0; _gdMAIN_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdMAIN, _gdMAIN_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdMAIN.Name.ToString())); //_luCD_NM.Text = ARRAY[1].ToString(); _pCRUD = "R"; MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. _gdMAIN_VIEW.DoubleClick += _gdMAIN_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수 //그리드 설정 ==고정== }
private void InitializeSetting() { _luPROCESS_MST_CODE.Text = ARRAY_CODE[0].ToString(); _luEQUIPMENT_CODE.Text = ARRAY_CODE[1].ToString(); _pWINDOW_NAME = this.Name.ToString(); //언어설정 창 표시 정보 PageSetting_WINDOW_NAME = _pWINDOW_NAME; PageSetting_USER_CODE = _pUSER_CODE; PageSetting_LANGUAGE = _pLANGUAGE_TYPE; PageSetting_FONT = fntPARENT_FONT; //메뉴 화면 엔티티 설정 _pfrmResourceMst_PopupEntity = new frmResourceMst_PopupEntity(); //_pfrmCategorySensorSettingsEntity.CORP_CODE = _pCORP_CODE; _pfrmResourceMst_PopupEntity.USER_CODE = _pUSER_CODE; _pfrmResourceMst_PopupEntity.LANGUAGE_TYPE = _pLANGUAGE_TYPE; _pfrmResourceMst_PopupEntity.INSPECT_CODE = ARRAY_CODE[2].ToString(); //화면 설정 언어 & 명칭 변경. ==고정== DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE); if (dtLanguage != null && dtLanguage.Rows.Count > 0) { CoFAS_ControlManager.Language_Info(dtLanguage, this); } //추가 메세지 정보 조회. dtMessage = new MessageBusiness().MessageValue_Mst_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME); if (dtMessage != null && dtMessage.Rows[0][0].ToString() != "") { _pMSG_SEARCH = dtMessage.Rows[0]["MSG_SEARCH"].ToString(); _pMSG_SEARCH_EMPT = dtMessage.Rows[0]["MSG_SEARCH_EMPT"].ToString(); _pMSG_SAVE_QUESTION = dtMessage.Rows[0]["MSG_SAVE_QUESTION"].ToString(); _pMSG_SAVE = dtMessage.Rows[0]["MSG_SAVE"].ToString(); _pMSG_SAVE_ERROR = dtMessage.Rows[0]["MSG_SAVE_ERROR"].ToString(); _pMSG_DELETE_QUESTION = dtMessage.Rows[0]["MSG_DELETE_QUESTION"].ToString(); _pMSG_DELETE = dtMessage.Rows[0]["MSG_DELETE"].ToString(); _pMSG_DELETE_ERROR = dtMessage.Rows[0]["MSG_DELETE_ERROR"].ToString(); _pMSG_DELETE_COMPLETE = dtMessage.Rows[0]["MSG_DELETE_COMPLETE"].ToString(); _pMSG_INPUT_DATA = dtMessage.Rows[0]["MSG_INPUT_DATA"].ToString(); _pMSG_INPUT_DATA_ERROR = dtMessage.Rows[0]["MSG_INPUT_DATA_ERROR"].ToString(); _pMSG_WORKING = dtMessage.Rows[0]["MSG_WORKING"].ToString(); _pMSG_RESET_QUESTION = dtMessage.Rows[0]["MSG_RESET_QUESTION"].ToString(); _pMSG_EXIT_QUESTION = dtMessage.Rows[0]["MSG_EXIT_QUESTION"].ToString(); _pMSG_SELECT = dtMessage.Rows[0]["MSG_SELECT"].ToString(); _pMSG_CHECK_VALID_ITEM = dtMessage.Rows[0]["MSG_CHECK_VALID_ITEM"].ToString(); _pMSG_RESET_COMPLETE = dtMessage.Rows[0]["MSG_RESET_COMPLETE"].ToString(); } //그리드 설정 InitializeGrid(); //화면 컨트롤러 설정 InitializeControl(); }
private void InitializeSetting() { //LEFT 품목코드 그리드 //화면 설정 언어 & 명칭 변경. ==고정== DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE); if (dtLanguage != null && dtLanguage.Rows.Count > 0) { CoFAS_ControlManager.Language_Info(dtLanguage, this); } //그리드 설정 ==고정== _gdPART_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdPART, _gdPART_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdPART.Name.ToString())); _pCRUD = ""; switch (ARRAY[0].ToString()) { case "Material_Code": _luT_PART_TYPE.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "MATERIAL_CHECK", "CD90", "", "").Tables[0], 0, 0, ""); //자재만 조회 꼼보빡쑤 break; case "Product_Code": _luT_PART_TYPE.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "PRODUCT_CHECK", "CD90", "", "").Tables[0], 0, 0, ""); //자재만 조회 꼼보빡쑤 break; case "PART_TYPE_PRODUCT_T01": _luT_PART_TYPE.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "PART_TYPE_PRODUCT_T01", "CD90", "", "").Tables[0], 0, 0, ""); //제품/반제품 조회 꼼보빡쑤 break; case "PRODUCT_TYPE_T01": _luT_PART_TYPE.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "PRODUCT_TYPE_T01", "CD90", "", "").Tables[0], 0, 0, ""); //제품/반제품 조회 꼼보빡쑤 break; default: _luT_PART_TYPE.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "common_code", "CD90", "", "").Tables[0], 0, 0, ""); //자재만 조회 꼼보빡쑤 break; } _luCD_NM.Text = ARRAY[1].ToString(); // MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. //_gdPART_VIEW.DoubleClick += _gdMAIN_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수 //그리드 설정 ==고정== //RIGHT 거래처코드 정보(단가) //그리드 설정 ==고정== _gdPART_VIEW.RowCellClick += _gdPART_VIEW_RowCellClick; _gdVEND_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdVEND, _gdVEND_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdVEND.Name.ToString())); _pCRUD = "R"; MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. _gdVEND_VIEW.DoubleClick += _gdVEND_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수 _gdPART_VIEW.DoubleClick += _gdPART_VIEW_DoubleClick; }
private void InitializeSetting() { //화면 설정 언어 & 명칭 변경. ==고정== DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE); if (dtLanguage != null && dtLanguage.Rows.Count > 0) { CoFAS_ControlManager.Language_Info(dtLanguage, this); } }
// 초기화 처리 영역 #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 = "frmPOPWorker_T50"; _pUSER_CODE = _pUserEntity.USER_CODE; _pUSER_NAME = _pUserEntity.USER_NAME; _pLANGUAGE_TYPE = _pUserEntity.LANGUAGE_TYPE; _pFONT_TYPE = _pUserEntity.FONT_TYPE; _pFONT_SIZE = _pUserEntity.FONT_SIZE; //메뉴 화면 엔티티 설정 _pPOPProductionOrder_T50Entity = new POPProductionOrder_T50Entity(); _pPOPProductionOrder_T50Entity.CORP_CODE = _pUserEntity.CORP_CODE; _pPOPProductionOrder_T50Entity.USER_CODE = _pUserEntity.USER_CODE; _pPOPProductionOrder_T50Entity.LANGUAGE_TYPE = _pUserEntity.LANGUAGE_TYPE; _pPOPProductionOrder_T50Entity.PROCESS_CODE = _pUserEntity.PROCESS_CODE; _pPOPProductionOrder_T50Entity.RESOURCE_CODE = _pUserEntity.RESOURCE_CODE; //화면 설정 언어 & 명칭 변경. 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(); //그리드 초기화 MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. } catch (ExceptionManager pExceptionManager) { CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString())); } }
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_RESET_COMPLETE = _pMessageEntity.MSG_RESET_COMPLETE; //메뉴 화면 엔티티 설정 _pMenuAuthority_T02Entity = new MenuAuthority_T02Entity(); _pMenuAuthority_T02Entity.CORP_CODE = _pCORP_CODE; _pMenuAuthority_T02Entity.USER_CODE = _pUSER_CODE; _pMenuAuthority_T02Entity.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); } DateTime pDateTime = DateTime.Today; DateTime pFirstDateTime = pDateTime.AddDays(1 - pDateTime.Day); //그리드 설정 ==고정== _gdMAIN_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdMAIN, _gdMAIN_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdMAIN.Name.ToString())); _gdSUB_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdSUB, _gdSUB_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdSUB.Name.ToString())); CoFAS_DevGridEventManager.OnViewDoubleClick += CoFAS_DevGridEventManager_OnViewDoubleClick; CoFAS_DevExpressManager._OnButtonPressed += CoFAS_DevExpressManager__OnButtonPressed; MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. SubFind_DisplayData(); }
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_RESET_COMPLETE = _pMessageEntity.MSG_RESET_COMPLETE; //메뉴 화면 엔티티 설정 _pucOrderNumberInfoListPopupEntity = new ucOrderNumberInfoListPopupEntity(); _pucOrderNumberInfoListPopupEntity.CORP_CODE = _pCORP_CODE; _pucOrderNumberInfoListPopupEntity.USER_CODE = _pUSER_CODE; _pucOrderNumberInfoListPopupEntity.LANGUAGE_TYPE = _pLANGUAGE_TYPE; _pucOrderNumberInfoListPopupEntity.ORDER_NUMBER = ARRAY_CODE[0].ToString(); _pucOrderNumberInfoListPopupEntity.ORDER_NAME = ARRAY_CODE[1].ToString(); //화면 설정 언어 & 명칭 변경. ==고정== DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE); if (dtLanguage != null && dtLanguage.Rows.Count > 0) { CoFAS_ControlManager.Language_Info(dtLanguage, this); } //그리드 설정 ==고정== _luTORDER_DATE.FromDateTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); //조회 시작일, 매월 초 날짜로 설정 _luTORDER_DATE.ToDateTime = DateTime.Today; //조회 종료일, 당일 설정 _luTORDER_NUMBER.Text = _pucOrderNumberInfoListPopupEntity.ORDER_NUMBER; _luTORDER_NAME.Text = _pucOrderNumberInfoListPopupEntity.ORDER_NAME; _gdMAIN_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdMAIN, _gdMAIN_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdMAIN.Name.ToString())); _pucOrderNumberInfoListPopupEntity.CRUD = "R"; MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. _gdMAIN_VIEW.DoubleClick += _gdMAIN_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수 //그리드 설정 ==고정== }
private void InitializeSetting() { this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.WindowState = FormWindowState.Maximized; //화면 설정 언어 & 명칭 변경. ==고정== DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE); if (dtLanguage != null && dtLanguage.Rows.Count > 0) { CoFAS_ControlManager.Language_Info(dtLanguage, this); } }
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_RESET_COMPLETE = _pMessageEntity.MSG_RESET_COMPLETE; //메뉴 화면 엔티티 설정 _pucContractInfoPopupEntity = new ucContractInfoPopupEntity(); _pucContractInfoPopupEntity.CORP_CODE = _pCORP_CODE; _pucContractInfoPopupEntity.USER_CODE = _pUSER_CODE; _pucContractInfoPopupEntity.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); } DateTime pDateTime = DateTime.Today; DateTime pFirstDateTime = pDateTime.AddDays(1 - pDateTime.Day); _luCONTRACT_DATE.FromDateTime = pFirstDateTime; _luCONTRACT_DATE.ToDateTime = pDateTime; //그리드 설정 ==고정== _gdMAIN_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdMAIN, _gdMAIN_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdMAIN.Name.ToString())); MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. _gdMAIN_VIEW.DoubleClick += _gdMAIN_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수 //그리드 설정 ==고정== }
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_RESET_COMPLETE = _pMessageEntity.MSG_RESET_COMPLETE; //메뉴 화면 엔티티 설정 _pucMaterialOrderRegister_Request_T01Entity = new ucMaterialOrderRegister_Request_T01Entity(); _pucMaterialOrderRegister_Request_T01Entity.CORP_CODE = _pCORP_CODE; _pucMaterialOrderRegister_Request_T01Entity.USER_CODE = _pUSER_CODE; _pucMaterialOrderRegister_Request_T01Entity.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); } //그리드 설정 ==고정== _gdMAIN_VIEW = _TempGridView.Grid_Setting(_gdMAIN, _gdMAIN_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdMAIN.Name.ToString())); _gdSUB_VIEW = _TempGridView2.Grid_Setting(_gdSUB, _gdSUB_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdSUB.Name.ToString())); _luTORDER_DATE.FromDateTime = Convert.ToDateTime("2000-01-01"); //new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); //조회 시작일, 매월 초 날짜로 설정 _luTORDER_DATE.ToDateTime = DateTime.Today; //조회 종료일, 당일 설정 _luTVEND_CODE.CodeText = ""; _luTVEND_CODE.NameText = ""; _pucMaterialOrderRegister_Request_T01Entity.CRUD = "R"; MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. _gdMAIN_VIEW.RowCellClick += _gdMAIN_VIEW_RowCellClick; _gdMAIN_VIEW.DoubleClick += _gdMAIN_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수 _gdSUB_VIEW.RowCellClick += _gdSUB_VIEW_RowCellClick; }
private void InitializeSetting() { try { //메인 화면 전역 변수 처리 _pFONT_SETTING = new Font(_pFONT_TYPE, _pFONT_SIZE); _pWINDOW_NAME = this.Name; _pUSER_CODE = _pUserEntity.USER_CODE; _pUSER_NAME = _pUserEntity.USER_NAME; _pLANGUAGE_TYPE = _pUserEntity.LANGUAGE_TYPE; _pFONT_TYPE = _pUserEntity.FONT_TYPE; _pFONT_SIZE = _pUserEntity.FONT_SIZE; //메뉴 화면 엔티티 설정 _pucTABEquipmentEntity = new ucTABEquipmentEntity(); _pucTABEquipmentEntity.CORP_CODE = _pUserEntity.CORP_CODE; _pucTABEquipmentEntity.USER_CODE = _pUserEntity.USER_CODE; _pucTABEquipmentEntity.LANGUAGE_TYPE = _pUserEntity.LANGUAGE_TYPE; _pucTABRegisterEntity = new ucTABRegisterEntity(); _pucTABRegisterEntity.CORP_CODE = _pUserEntity.CORP_CODE; _pucTABRegisterEntity.USER_CODE = _pUserEntity.USER_CODE; _pucTABRegisterEntity.LANGUAGE_TYPE = _pUserEntity.LANGUAGE_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(); if (_pFirstYN) { _luCHECK_FILEValueChanged(null, null); _pFirstYN = false; } } catch (ExceptionManager pExceptionManager) { CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString())); } }
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_RESET_COMPLETE = _pMessageEntity.MSG_RESET_COMPLETE; //메뉴 화면 엔티티 설정 _pucVendCostInfoListPopupEntity = new ucVendCostInfoListPopupEntity(); _pucVendCostInfoListPopupEntity.CORP_CODE = _pCORP_CODE; _pucVendCostInfoListPopupEntity.USER_CODE = _pUSER_CODE; _pucVendCostInfoListPopupEntity.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); } _luPART_CODE.Text = ARRAY_CODE[0].ToString(); _luPART_NAME.Text = ARRAY_CODE[1].ToString(); _luPART_REVISION_NO.Text = ARRAY_CODE[2].ToString(); _luVEND_PART_CODE.Text = ARRAY_CODE[3].ToString(); //그리드 설정 ==고정== _gdMAIN_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdMAIN, _gdMAIN_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdMAIN.Name.ToString())); MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. //_gdMAIN_VIEW.DoubleClick += _gdMAIN_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수 _gdMAIN_VIEW.InitNewRow += _gdMAIN_VIEW_InitNewRow; //그리드 설정 ==고정== }
private void InitializeSetting() { try { //메인 화면 전역 변수 처리 _pFONT_SETTING = new Font(_pFONT_TYPE, _pFONT_SIZE); _pWINDOW_NAME = this.Name; _pUSER_CODE = _pUserEntity.USER_CODE; _pUSER_NAME = _pUserEntity.USER_NAME; _pLANGUAGE_TYPE = _pUserEntity.LANGUAGE_TYPE; _pFONT_TYPE = _pUserEntity.FONT_TYPE; _pFONT_SIZE = _pUserEntity.FONT_SIZE; //메뉴 화면 엔티티 설정 _pucTABCommentEntity = new ucTABCommentEntity(); _pucTABCommentEntity.CORP_CODE = _pUserEntity.CORP_CODE; _pucTABCommentEntity.USER_CODE = _pUserEntity.USER_CODE; _pucTABCommentEntity.LANGUAGE_TYPE = _pUserEntity.LANGUAGE_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(); if (_pFirstYN) { MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. _gdMAIN_VIEW.RowCellClick += _gdMAIN_VIEW_RowCellClick; _pFirstYN = false; } } catch (ExceptionManager pExceptionManager) { CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString())); } }
private void InitializeSetting() { //상속 화면 패널 사용 유무 //화면 설정 언어 & 명칭 변경. ==고정== DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE); if (dtLanguage != null && dtLanguage.Rows.Count > 0) { CoFAS_ControlManager.Language_Info(dtLanguage, this); } //그리드 설정 ==고정== _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 = "R"; strCODE = _pARRAY_CODE[0].ToString(); strNAME = _pARRAY_CODE[1].ToString(); strSERVICE_NAME = _pARRAY_CODE[2].ToString(); //switch (ARRAY[0].ToString()) //{ //case "Vend_In_Code": // _luVEND_TYPE.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "Vend_In_Code", "CD03", "", "").Tables[0], 0, 0, "",true); // break; //case "Vend_Out_Code": // _luVEND_TYPE.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "Vend_Out_Code", "CD03", "", "").Tables[0], 0, 0, "",true); // break; //default: // _luVEND_TYPE.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "COMMON_CODE", "CD03", "", "").Tables[0], 0, 0, ""); // break; //} MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. _gdMAIN_VIEW.DoubleClick += _gdMAIN_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수 //그리드 설정 ==고정== }
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_RESET_COMPLETE = _pMessageEntity.MSG_RESET_COMPLETE; //메뉴 화면 엔티티 설정 _pMaterialCollectAndPay_DetailEntity = new MaterialCollectAndPay_DetailEntity(); _pMaterialCollectAndPay_DetailEntity.CORP_CODE = _pCORP_CODE; _pMaterialCollectAndPay_DetailEntity.USER_CODE = _pUSER_CODE; _pMaterialCollectAndPay_DetailEntity.LANGUAGE_TYPE = _pLANGUAGE_TYPE; _pMaterialCollectAndPay_DetailEntity.DATE_FROM = _pARRAY_CODE[0].ToString(); _pMaterialCollectAndPay_DetailEntity.DATE_TO = _pARRAY_CODE[1].ToString(); _pMaterialCollectAndPay_DetailEntity.PART_CODE = _pARRAY_CODE[2].ToString(); //화면 설정 언어 & 명칭 변경. ==고정== DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE); if (dtLanguage != null && dtLanguage.Rows.Count > 0) { CoFAS_ControlManager.Language_Info(dtLanguage, this); } //그리드 설정 ==고정== _gdMAIN_VIEW = _TempGridView.Grid_Setting(_gdMAIN, _gdMAIN_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdMAIN.Name.ToString())); _pMaterialCollectAndPay_DetailEntity.CRUD = "R"; MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. // _gdMAIN_VIEW.DoubleClick += _gdMAIN_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수 }
private void InitializeSetting() { _ucBOM_SpendQtyCalcPopEntity = new ucBOM_SpendQtyCalcPopEntity(); _ucBOM_SpendQtyCalcPopEntity.CRUD = "R"; _ucBOM_SpendQtyCalcPopEntity.USER_CODE = _pUSER_CODE; _ucBOM_SpendQtyCalcPopEntity.LANGUAGE_TYPE = _pLANGUAGE_TYPE; _ucBOM_SpendQtyCalcPopEntity.WINDOW_NAME = this.Name; // _ucbtCalc.Visible = false; //LEFT 품목코드 그리드 //화면 설정 언어 & 명칭 변경. ==고정== DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE); if (dtLanguage != null && dtLanguage.Rows.Count > 0) { CoFAS_ControlManager.Language_Info(dtLanguage, this); } //그리드 설정 ==고정== _gdCONTRACT_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdCONTRACT, _gdCONTRACT_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdCONTRACT.Name.ToString())); //조회조건 영역 _luTORDER_DATE.FromDateTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); //조회 시작일, 매월 초 날짜로 설정 _luTORDER_DATE.ToDateTime = DateTime.Today; //조회 종료일, 당일 설정 _pCRUD = ""; // MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. //_gdPART_VIEW.DoubleClick += _gdMAIN_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수 //그리드 설정 ==고정== //RIGHT 거래처코드 정보(단가) //그리드 설정 ==고정== //20190214 //소요량 계산으로 변경 _gdCONTRACT_VIEW.RowCellClick += _gdCONTRACT_VIEW_RowCellClick; _gdBOM_VIEW = CoFAS_DevExpressManager.Grid_Setting(_gdBOM, _gdBOM_VIEW, fntPARENT_FONT, _pLANGUAGE_TYPE, new DevGridSettingBusiness().DevGrid_Info(_pLANGUAGE_TYPE, _pWINDOW_NAME, _gdBOM.Name.ToString())); _pCRUD = "R"; MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. _gdBOM_VIEW.DoubleClick += _gdVEND_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수 _gdCONTRACT_VIEW.DoubleClick += _gdPART_VIEW_DoubleClick; }
// 초기화 처리 영역 #region ○ 메뉴 초기화 하기 - InitializeSetting() private void InitializeSetting() { try { //상속 화면 패널 사용 유무 //메인 화면 전역 변수 처리 _pWINDOW_NAME = this.Name; //메뉴 화면 엔티티 설정 _pWindowSheetSettingEntity = new WindowSheetSettingEntity(); //_pWindowSheetSettingEntity.CORP_CODE = strCORP_CODE; _pWindowSheetSettingEntity.USER_CODE = strUSER_CODE; _pWindowSheetSettingEntity.WINDOW_NAME = strPARENT_WINDOW_NAME; _pWindowSheetSettingEntity.LANGUAGE_TYPE = strPARENT_LANGUAGE; //화면 설정 언어 & 명칭 변경. DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, strPARENT_LANGUAGE); if (dtLanguage != null && dtLanguage.Rows.Count > 0) { CoFAS_ControlManager.Language_Info(dtLanguage, this); } //메인 화면 공용 버튼 설정 //그리드 설정 InitializeGrid(); //화면 컨트롤러 설정 InitializeControl(); // SheetMainFind_DisplayData(); // _gdMAIN_VIEW.RowCellClick += _gdMAIN_VIEW_RowCellClick; } catch (ExceptionManager pExceptionManager) { CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager)); } }
private void InitializeSetting() { //화면 설정 언어 & 명칭 변경. ==고정== DataTable dtLanguage = new LanguageBusiness().Language_Info(_pWINDOW_NAME, _pLANGUAGE_TYPE); if (dtLanguage != null && dtLanguage.Rows.Count > 0) { CoFAS_ControlManager.Language_Info(dtLanguage, this); } _luSENSOR_UNIT.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "SENSOR_UNIT", "", "", "").Tables[0], 0, 0, ""); _luUSE_YN.AddValue(new CommonCodeReturnBusiness().CommonCode_Return("R", _pLANGUAGE_TYPE, "USE_YN", "", "", "").Tables[0], 0, 0, ""); _luSENSOR_FLOAT_DIGIT.Text = "0"; _luM_LIMIT_HIGH.Text = "0.00"; _luM_LIMIT_LOW.Text = "0.00"; _luLIMIT_HIGH.Text = "0.00"; _luLIMIT_LOW.Text = "0.00"; _luREMARK.Text = ""; }
//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); _pFONT_SETTING2 = new Font("Tahoma", 50); //_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; _pUSER_CODE = _pUserEntity.USER_CODE; _pUSER_NAME = _pUserEntity.USER_NAME; _pLANGUAGE_TYPE = _pUserEntity.LANGUAGE_TYPE; _pFONT_TYPE = _pUserEntity.FONT_TYPE; _pFONT_SIZE = _pUserEntity.FONT_SIZE; //메뉴 화면 엔티티 설정 _pPOPFirstMiddleLastEntity = new POPFirstMiddleLastEntity(); _pPOPFirstMiddleLastEntity.CORP_CODE = _pUserEntity.CORP_CODE; _pPOPFirstMiddleLastEntity.USER_CODE = _pUserEntity.USER_CODE; _pPOPFirstMiddleLastEntity.LANGUAGE_TYPE = _pUserEntity.LANGUAGE_TYPE; _pPOPFirstMiddleLastEntity.PROCESS_CODE = _pUserEntity.PROCESS_CODE; _pPOPFirstMiddleLastEntity.RESOURCE_CODE = _pUserEntity.RESOURCE_CODE; //화면 설정 언어 & 명칭 변경. 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(); //그리드 초기화 ////여러 그리드 사용시 마스터 그리드는 최초 실행 시에만 초기화 //_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)); _gdMAIN_VIEW.RowCellClick += _gdMAIN_VIEW_RowCellClick; } catch (ExceptionManager pExceptionManager) { CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString())); } }
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); //monthCalendar1.SelectionRange.Start.ToShortDateString(); //monthCalendar1 //calendarControl1.ShowMonthHeaders = false; // calendarControl1. //그리드 설정 ==고정== }
// 초기화 처리 영역 #region ○ 메뉴 초기화 하기 - InitializeSetting() private void InitializeSetting() { try { //상속 화면 패널 사용 유무 _pnHeader.Visible = true; _pnContent.Visible = true; _pnLeft.Visible = false; _pnRight.Width = 600; //메인 화면 전역 변수 처리 _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; //메인 화면 공통 메세지 처리 _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; _pMSG_PROCESS_CODE = MainForm.MessageEntity.MSG_PROCESS_CODE; _pMSG_STATUS_OK = MainForm.MessageEntity.MSG_STATUS_OK; _pWINDOW_NAME = this.Name; //메뉴 화면 엔티티 설정 _pWorkResultRegister_T50Entity = new WorkResultRegister_T50Entity(); _pWorkResultRegister_T50Entity.USER_CODE = _pUSER_CODE; _pWorkResultRegister_T50Entity.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(); //그리드 초기화 //여러 그리드 사용시 마스터 그리드는 최초 실행 시에만 초기화 _pWorkResultRegister_T50Entity.CRUD = ""; if (_pFirstYN) { xtraTabControl1.ShowTabHeader = DevExpress.Utils.DefaultBoolean.False; MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. _pFirstYN = false; } //컨트롤러 별 추가 이벤트 생성은 화면 설정 마지막에 진행 _gdMAIN_VIEW.RowCellClick += _gdMAIN_VIEW_RowCellClick; } catch (ExceptionManager pExceptionManager) { CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString())); } }
//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; //_pUserEntity.LANGUAGE_TYPE = Properties.Settings.Default.MULTI_LANGUAGE.ToString(); _pWINDOW_NAME = this.Name; //_pUSER_CODE = _pUserEntity.USER_CODE; //_pUSER_NAME = _pUserEntity.USER_NAME; _pLANGUAGE_TYPE = _pUserEntity.LANGUAGE_TYPE; //_pFONT_TYPE = _pUserEntity.FONT_TYPE; //_pFONT_SIZE = _pUserEntity.FONT_SIZE; //메뉴 화면 엔티티 설정 _pPOPProductMonitoringEntity = new POPProductMonitoringEntity(); _pPOPProductMonitoringEntity.CORP_CODE = _pUserEntity.CORP_CODE; _pPOPProductMonitoringEntity.USER_CODE = _pUserEntity.USER_CODE; _pPOPProductMonitoringEntity.LANGUAGE_TYPE = "한국어"; _pPOPProductMonitoringEntity.PROCESS_CODE = _pUserEntity.PROCESS_CODE; _pPOPProductMonitoringEntity.RESOURCE_CODE = _pUserEntity.RESOURCE_CODE; //화면 설정 언어 & 명칭 변경. 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(); //라벨컨트롤 가운데 정렬 _lbStartTime.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; _lbCurrentTime.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; _lbContract.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; _lbContract_Qty.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; _lbProductPlan.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; _lbPlan_QTY.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; _lbProductResult.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; _lbResult_Qty.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; //그리드 초기화 //여러 그리드 사용시 마스터 그리드는 최초 실행 시에만 초기화 //_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 { //상속 화면 패널 사용 유무 _pnHeader.Visible = true; _pnContent.Visible = true; _pnLeft.Visible = true; _pnLeft.Width = 380; //메인 화면 전역 변수 처리 _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; _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; //메뉴 화면 엔티티 설정 _pInspectProcessMappingRegisterEntity = new InspectProcessMappingRegisterEntity(); _pInspectProcessMappingRegisterEntity.USER_CODE = _pUSER_CODE; _pInspectProcessMappingRegisterEntity.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(); //그리드 초기화 //메인 그리드 //여러 그리드 사용시 마스터 그리드는 최초 실행 시에만 초기화 _pInspectProcessMappingRegisterEntity.CRUD = ""; Sub02Find_DisplayData(); if (_pFirstYN) { //컨트롤러 별 추가 이벤트 생성은 화면 설정 마지막에 진행 _gdMAIN_VIEW.RowCellClick += _gdMAIN_VIEW_RowCellClick; _gdSUB01_VIEW.DoubleClick += _gdSUB01_VIEW_DoubleClick; _gdSUB02_VIEW.DoubleClick += _gdSUB02_VIEW_DoubleClick; _tempSubGrid._OnButtonPressed += _tempSubGridView__OnButtonPressed; _pFirstYN = false; } } catch (ExceptionManager pExceptionManager) { CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString())); } }
// 초기화 처리 영역 #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_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; _pWINDOW_NAME = this.Name; //메뉴 화면 엔티티 설정 _pMaterialOutStatusEntity = new MaterialOutStatusEntity(); //_pMaterialOutStatusEntity.CORP_CODE = _pCORP_CODE; _pMaterialOutStatusEntity.USER_CODE = _pUSER_CODE; _pMaterialOutStatusEntity.WINDOW_NAME = _pWINDOW_NAME; _pMaterialOutStatusEntity.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(); //그리드 초기화 //여러 그리드 사용시 마스터 그리드는 최초 실행 시에만 초기화 _pMaterialOutStatusEntity.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)); } }
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_MIXEntity = new POPSelect_INSPECT_MIXEntity(); _pPOPSelect_INSPECT_MIXEntity.CORP_CODE = _pCORP_CDDE; _pPOPSelect_INSPECT_MIXEntity.USER_CODE = _pUSER_CODE; _pPOPSelect_INSPECT_MIXEntity.LANGUAGE_TYPE = _pLANGUAGE_TYPE; _pPOPSelect_INSPECT_MIXEntity.PROCESS_CODE = ""; _pPOPSelect_INSPECT_MIXEntity.RESOURCE_CODE = ""; //그리드 설정 // double ddd = Math.Acos(0.912); //그리드 초기화 //여러 그리드 사용시 마스터 그리드는 최초 실행 시에만 초기화 if (_pFirstYN) { _pPOPSelect_INSPECT_MIXEntity.USER_CODE = _pUserEntity.USER_CODE; _pFirstYN = false; } //버튼 세팅 if (_pUserEntity.PROCESS_CODE == "ME020001") { _ucbtRECPIE_REG.Visible = false; //SetHardware(); } } catch (ExceptionManager pExceptionManager) { CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString())); } }
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 //그리드 설정 ==고정== _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 = ""; MainFind_DisplayData(); //Dev Grid 데이터소스 로 바인딩 작업 처리 할 경우에는 최초 빈 데이터 테이블을 바인딩 해야 됨. _gdMAIN_VIEW.DoubleClick += _gdMAIN_VIEW_DoubleClick; //그리드 로우 마우스 선택으로 값 넘길경우 필수 //그리드 설정 ==고정== }