private void _luCONTRACT_ID__OnButtonPressed(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            try
            {
                try
                {
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.USER_CODE     = _pUSER_CODE;
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.FONT_TYPE     = fntPARENT_FONT;

                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.ARRAY = new object[2] {
                        "ProductionOrderInfo_Popup", _luTPART_NAME.Text
                    };                                                                                                                 //넘기는 파라메터 에 따라 설정, 제품/조회할때 품목명을 던지기
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.ARRAY_CODE = new object[2] {
                        _luTPART_CODE.Text, _luTPART_NAME.Text
                    };
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup xfrmCommonPopup = new CoFAS_MES.UI.PO.UserForm.frmCommonPopup("ProductionOrderInfo_Popup"); //유저컨트롤러 설정 부분

                    xfrmCommonPopup.ShowDialog();

                    if (xfrmCommonPopup.dtReturn == null)
                    {
                        xfrmCommonPopup.Dispose();
                        return;
                    }

                    if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                    {
                        _pCONTRACT_ID = xfrmCommonPopup.dtReturn.Rows[0]["CONTRACT_ID"].ToString();

                        // _luREFERENCE_ID.Text = xfrmCommonPopup.dtReturn.Rows[0]["REFERENCE_ID"].ToString();
                        _pCONTRACT_QTY = xfrmCommonPopup.dtReturn.Rows[0]["CONTRACT_QTY"].ToString();

                        // BOM 조회하기
                        MainFind_DisplayData();
                    }

                    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 _luORDER_NUMBER_OnButtonPressed(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            try
            {
                try
                {
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.USER_CODE     = _pUSER_CODE;
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.FONT_TYPE     = fntPARENT_FONT;

                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.ARRAY = new object[2] {
                        "ProductionOrderInfo_Popup", ""
                    };                                                                                                 //넘기는 파라메터 에 따라 설정, 제품/조회할때 품목명을 던지기
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.ARRAY_CODE = new object[2] {
                        "", ""
                    };
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup xfrmCommonPopup = new CoFAS_MES.UI.PO.UserForm.frmCommonPopup("ProductionOrderInfo_Popup_T07"); //유저컨트롤러 설정 부분

                    xfrmCommonPopup.ShowDialog();

                    if (xfrmCommonPopup.dtReturn == null)
                    {
                        xfrmCommonPopup.Dispose();
                        return;
                    }

                    if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                    {
                        _luORDER_NUMBER.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["ORDER_NUMBER"].ToString();
                        _luORDER_NUMBER.NameText = xfrmCommonPopup.dtReturn.Rows[0]["ORDER_NAME"].ToString();
                        _pWorkOrderInfoPopup_T03Entity.ORDER_NUMBER = xfrmCommonPopup.dtReturn.Rows[0]["ORDER_NUMBER"].ToString();
                        _pWorkOrderInfoPopup_T03Entity.REFERENCE_ID = xfrmCommonPopup.dtReturn.Rows[0]["PRODUCTION_PLAN_ID"].ToString();
                        MainFind_DisplayData();
                    }

                    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 _btSELECT_Click(object sender, EventArgs e)
        {
            try
            {
                //수주참조
                if (_luSEARCH_TYPE.GetValue() == "PO040001")
                {
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.USER_CODE     = _pUSER_CODE;
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.FONT_TYPE     = fntPARENT_FONT;

                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.ARRAY = new object[2] {
                        "ProductionOrderInfo_Popup", _luTPART_NAME.Text
                    };                                                                                                                 //넘기는 파라메터 에 따라 설정, 제품/조회할때 품목명을 던지기
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup.ARRAY_CODE = new object[2] {
                        _luTPART_CODE.Text, _luTPART_NAME.Text
                    };
                    CoFAS_MES.UI.PO.UserForm.frmCommonPopup xfrmCommonPopup = new CoFAS_MES.UI.PO.UserForm.frmCommonPopup("ProductionOrderInfo_Popup"); //유저컨트롤러 설정 부분

                    xfrmCommonPopup.ShowDialog();

                    if (xfrmCommonPopup.dtReturn == null)
                    {
                        xfrmCommonPopup.Dispose();
                        return;
                    }

                    if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                    {
                        _pCONTRACT_ID = xfrmCommonPopup.dtReturn.Rows[0]["CONTRACT_ID"].ToString();

                        // _luREFERENCE_ID.Text = xfrmCommonPopup.dtReturn.Rows[0]["REFERENCE_ID"].ToString();
                        _pCONTRACT_QTY = xfrmCommonPopup.dtReturn.Rows[0]["LEAVE_QTY"].ToString();
                        _pucWorkOrderInfoPopup_T04Entity.LEAVE_QTY = _pCONTRACT_QTY;
                        // BOM 조회하기
                        MainFind_DisplayData();
                    }

                    xfrmCommonPopup.Dispose();
                }
                //품목참조
                else if (_luSEARCH_TYPE.GetValue() == "PO040002")
                {
                    frmCommonPopup.USER_CODE     = _pUSER_CODE;
                    frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                    frmCommonPopup.FONT_TYPE     = fntPARENT_FONT;

                    frmCommonPopup.ARRAY = new object[2] {
                        "PRODUCT_TYPE_T01", _luTPART_NAME.Text
                    };                                                                               //넘기는 파라메터 에 따라 설정, 제품/조회할때 품목명을 던지기
                    frmCommonPopup.ARRAY_CODE = new object[2] {
                        _luTPART_CODE.Text, _luTPART_NAME.Text
                    };
                    frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("VendCodeInfo_T04_biocerra"); //유저컨트롤러 설정 부분

                    xfrmCommonPopup.ShowDialog();

                    if (xfrmCommonPopup.dtReturn == null)
                    {
                        xfrmCommonPopup.Dispose();
                        return;
                    }

                    if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                    {
                        _luTPART_CODE.Text = xfrmCommonPopup.dtReturn.Rows[0]["PART_CODE"].ToString();
                        _luTPART_NAME.Text = xfrmCommonPopup.dtReturn.Rows[0]["PART_NAME"].ToString();
                        //_luUNITCOST.Text = xfrmCommonPopup.dtReturn.Rows[0]["PART_UNITCOST"].ToString();
                        _pucWorkOrderInfoPopup_T04Entity.LEAVE_QTY = "1";
                        MainFind_DisplayData();
                    }
                    xfrmCommonPopup.Dispose();
                }
                //재고도 같이나옴
                //품목구분 콤보박스없음

                /*
                 * frmCommonPopup.USER_CODE = _pUSER_CODE;
                 * frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                 * frmCommonPopup.FONT_TYPE = fntPARENT_FONT;
                 *
                 * frmCommonPopup.ARRAY = new object[2] { "Product_Code", _luTPART_NAME.Text }; //넘기는 파라메터 에 따라 설정, 제품/조회할때 품목명을 던지기
                 * frmCommonPopup.ARRAY_CODE = new object[2] { _luTPART_CODE.Text, _luTPART_NAME.Text };
                 * //frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("PartCodeInfo"); //유저컨트롤러 설정 부분
                 * frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("VendCodeInfo_T04_biocerra"); //유저컨트롤러 설정 부분
                 *
                 *
                 * xfrmCommonPopup.ShowDialog();
                 *
                 * if (xfrmCommonPopup.dtReturn == null)
                 * {
                 *  xfrmCommonPopup.Dispose();
                 *  return;
                 * }
                 *
                 * if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                 * {
                 *  _luTPART_CODE.Text = xfrmCommonPopup.dtReturn.Rows[0]["PART_CODE"].ToString();
                 *  _luTPART_NAME.Text = xfrmCommonPopup.dtReturn.Rows[0]["PART_NAME"].ToString();
                 *  // BOM 조회하기
                 *  MainFind_DisplayData();
                 * }
                 * xfrmCommonPopup.Dispose();
                 * }
                 */
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }