private void _luCONTRACT_ID__OnButtonPressed(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { try { try { UI.PO.UserForm.frmCommonPopup.USER_CODE = _pUSER_CODE; UI.PO.UserForm.frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; UI.PO.UserForm.frmCommonPopup.FONT_TYPE = fntPARENT_FONT; UI.PO.UserForm.frmCommonPopup.ARRAY = new object[2] { "ContractInfo_Popup", _luTPART_NAME.Text }; //넘기는 파라메터 에 따라 설정, 제품/조회할때 품목명을 던지기 UI.PO.UserForm.frmCommonPopup.ARRAY_CODE = new object[2] { _luTPART_CODE.Text, _luTPART_NAME.Text }; UI.PO.UserForm.frmCommonPopup xfrmCommonPopup = new UI.PO.UserForm.frmCommonPopup("ContractInfo_Popup_T06"); //유저컨트롤러 설정 부분 xfrmCommonPopup.ShowDialog(); if (xfrmCommonPopup.dtReturn == null) { xfrmCommonPopup.Dispose(); return; } if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0) { _luCONTRACT_ID.Text = xfrmCommonPopup.dtReturn.Rows[0]["CONTRACT_ID"].ToString(); _luPART_CODE.Text = xfrmCommonPopup.dtReturn.Rows[0]["PART_CODE"].ToString(); _luPART_NAME.Text = xfrmCommonPopup.dtReturn.Rows[0]["PART_NAME"].ToString(); // BOM 조회하기 MainFind_DisplayData(); //_luCONTRACT_QTY.TextAlignment = DevExpress.Utils.HorzAlignment.Far; _luCONTRACT_QTY.Text = xfrmCommonPopup.dtReturn.Rows[0]["CONTRACT_QTY"].ToString(); //_luPLAN_QTY.Text = xfrmCommonPopup.dtReturn.Rows[0]["CONTRACT_QTY"].ToString(); string PRODUCTION_PLAN_QTY = xfrmCommonPopup.dtReturn.Rows[0]["PRODUCTION_PLAN_QTY"].ToString(); decimal REMAIN_QTY = Decimal.Parse(_luCONTRACT_QTY.Text) - Decimal.Parse(PRODUCTION_PLAN_QTY); //_luREMAIN_QTY.TextAlignment = DevExpress.Utils.HorzAlignment.Far; _luREMAIN_QTY.Text = REMAIN_QTY.ToString(); } xfrmCommonPopup.Dispose(); } catch (ExceptionManager pExceptionManager) { CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString())); } } catch (ExceptionManager pExceptionManager) { CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString())); } }
private void Form_AddItemButtonClicked(object pSender, EventArgs pEventArgs) { try { CoFAS_DevExpressManager.SetCursor(this, Cursors.WaitCursor); if (_gdMAIN_index > -1) { // 작업장 필수항목 체크 - 팝업 불필요 if (_pWorkResultRegister_T07Entity.PROCESS_CODE == "") { CoFAS_DevExpressManager.ShowInformationMessage(_pMSG_PROCESS_CODE); return; } // 작업상태 완료시 체크 - 수정불가 if (_pWorkResultRegister_T07Entity.USE_YN == "ES011003") { CoFAS_DevExpressManager.ShowInformationMessage(_pMSG_STATUS_OK); return; } // 팝업에 파라미터 전송 UI.PO.UserForm.frmCommonPopup.USER_CODE = _pUSER_CODE; UI.PO.UserForm.frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE; UI.PO.UserForm.frmCommonPopup.FONT_TYPE = _pFONT_SETTING; _pLocation_Code = _pWorkResultRegister_T07Entity.PRODUCTION_ORDER_ID; UI.PO.UserForm.frmCommonPopup.ARRAY_CODE = new object[5] { _pWorkResultRegister_T07Entity.PRODUCTION_ORDER_ID, _pWorkResultRegister_T07Entity.PART_CODE, _pWorkResultRegister_T07Entity.PART_NAME, _pWorkResultRegister_T07Entity.PROCESS_CODE, _pWorkResultRegister_T07Entity.TERMINAL_CODE }; UI.PO.UserForm.frmCommonPopup xfrmCommonPopup = new UI.PO.UserForm.frmCommonPopup("WorkResult_T03"); //유저컨트롤러 설정 부분 xfrmCommonPopup.ShowDialog(); xfrmCommonPopup.Dispose(); _gdMAIN_index = -1; Form_SearchButtonClicked(null, null); } else { //CoFAS_DevExpressManager.ShowInformationMessage("작업지시를 선택하여주시기 바랍니다."); CoFAS_DevExpressManager.ShowInformationMessage(_pMSG_SELECT); return; } } catch (ExceptionManager pExceptionManager) { CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString())); } finally { CoFAS_DevExpressManager.SetCursor(this, Cursors.Default); } }