示例#1
0
        // 추가 이벤트 생성
        #region ○ 메인 그리드 로우 선택 이벤트 생성 - _gdMAIN_VIEW_RowCellClick(object sender, RowCellClickEventArgs e)
        private void _gdMAIN_VIEW_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            try
            {
                GridView gv = sender as GridView;
                CoFAS_ControlManager.Controls_Binding(gv, false, this); //그리드 정보 디테일 표기

                _pNoticeEntity.CRUD      = "R";
                _pNoticeEntity.NOTICE_ID = gv.GetFocusedRowCellValue("NOTICE_ID").ToString();

                string title    = gv.GetFocusedRowCellValue("TITLE").ToString();
                string contents = gv.GetFocusedRowCellValue("CONTENTS").ToString();
                string user     = gv.GetFocusedRowCellValue("REG_USER").ToString();
                string date     = gv.GetFocusedRowCellValue("NOTICE_DATE").ToString();

                frmCommonPopup.CRUD          = "R";
                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

                // 0 서비스네임 1 공통코드경우 CODE_TYPE 으로구분자 올린다.
                frmCommonPopup.ARRAY_CODE = new object[4] {
                    title, contents, user, date
                };
                frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("NoticeDetail"); //유저컨트롤러 설정 부분

                xfrmCommonPopup.ShowDialog();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
示例#2
0
        private void _luPART__OnOpenClick(object sender, EventArgs e)
        {
            //VendCostInfo
            frmCommonPopup.CRUD          = "R";
            frmCommonPopup.USER_CODE     = _pUSER_CODE;
            frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
            frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;



            // 0 서비스네임 1 공통코드경우 CODE_TYPE 으로구분자 올린다.
            frmCommonPopup.ARRAY = new object[2] {
                "Material_Code", ""
            };

            //검색조건 전달 0 코드 1 명칭
            frmCommonPopup.ARRAY_CODE = new object[2] {
                _luWASHER.CodeText.ToString(), _luWASHER.NameText.ToString()
            };

            //ucVendCodeInfoPopup xucVendCodeInfoPopup = new CORE.UserControls.ucVendCodeInfoPopup("PartCodeInfo"); //유저컨트롤러 설정 부분
            frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("CommonCode"); //유저컨트롤러 설정 부분

            xfrmCommonPopup.ShowDialog();

            if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
            {
                _luWASHER.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["CD"].ToString() == null ? "" : xfrmCommonPopup.dtReturn.Rows[0]["CD"].ToString();
                _luWASHER.NameText = xfrmCommonPopup.dtReturn.Rows[0]["CD_NM"].ToString() == null ? "" : xfrmCommonPopup.dtReturn.Rows[0]["CD_NM"].ToString();

                //데이터 세팅
            }

            xfrmCommonPopup.Dispose();
        }
示例#3
0
        private void CoFAS_DevExpressManager__OnButtonPressed(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            //_gdMAIN_VIEW.EditingValue = "";
            switch (e.Button.Caption.ToString())
            {
            case "TEST":     //해당 그리드에 필드명 // 2개 이상 그리드의 버튼 항목들은 버튼 타입에 필드 명칭이 모두 다르게 설정 되어야됨.
                frmCommonPopup.CORP_CDDE     = _pCORP_CODE;
                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

                frmCommonPopup.ARRAY = new object[2] {
                    "common_code", "CD99"
                };                                                                               //넘기는 파라메터 에 따라 설정

                frmCommonPopup xfrmcommonPopup = new CORE.UserForm.frmCommonPopup("CommonCode"); //유저컨트롤러 설정 부분

                xfrmcommonPopup.ShowDialog();

                if (xfrmcommonPopup.dtReturn == null)
                {
                    return;
                }

                xfrmcommonPopup.dtReturn.Rows[0][0].ToString();
                // 리턴 받는 데이터의 값은 해당 그리드 뷰 필드에 설정.
                //_gdMAIN_VIEW.SetRowCellValue(_gdMAIN_VIEW.FocusedRowHandle, _gdMAIN_VIEW.Columns["TEST1"], xfrmcommonPopup.dtReturn.Rows[0]["CD"].ToString());
                //_gdMAIN_VIEW.SetRowCellValue(_gdMAIN_VIEW.FocusedRowHandle, _gdMAIN_VIEW.Columns["TEST2"], xfrmcommonPopup.dtReturn.Rows[0]["CD_NM"].ToString());
                xfrmcommonPopup.Dispose();
                break;
            }
        }
        private void _luTVEND__OnOpenClick(object sender, EventArgs e)
        {
            //검색조건 거래처 팝업 버튼 이벤트
            frmCommonPopup.CRUD          = "R";
            frmCommonPopup.USER_CODE     = _pUSER_CODE;
            frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
            frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

            // ( Vend_In_Code 매입, 공통, Vend_Out_Code 매출 공통 ) 코드
            frmCommonPopup.ARRAY = new object[2] {
                "vend_code_O", ""
            };                                                          //넘기는 파라메터 에 따라 설정

            //검색조건 전달 0 코드 1 명칭
            frmCommonPopup.ARRAY_CODE = new object[2] {
                _luTVEND.CodeText.ToString(), _luTVEND.NameText.ToString()
            };

            frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("VendInfo"); //유저컨트롤러 설정 부분

            xfrmCommonPopup.ShowDialog();

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

            if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
            {
                _luTVEND.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["CD"].ToString();        // 거래처코드 : 거래처명
                _luTVEND.NameText = xfrmCommonPopup.dtReturn.Rows[0]["CD_NM"].ToString();
            }
            xfrmCommonPopup.Dispose();
        }
示例#5
0
        private void _luTPART__OnButtonPressed(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            try
            {
                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

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

                xfrmCommonPopup.ShowDialog();

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

                if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                {
                    //       _luTPART.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["PART_CODE"].ToString();
                    //       _luTPART.NameText = xfrmCommonPopup.dtReturn.Rows[0]["PART_NAME"].ToString();
                }

                xfrmCommonPopup.Dispose();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
示例#6
0
        private void _luTVEND__OnButtonPressed(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            try
            {
                /*
                 * frmCommonPopup.USER_CODE = _pUSER_CODE;
                 * frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                 * frmCommonPopup.FONT_TYPE = _pFONT_SETTING;
                 *
                 *
                 * // ( Vend_In_Code 매입, 공통, Vend_Out_Code 매출 공통 ) 코드
                 * frmCommonPopup.ARRAY = new object[2] { "Vend_Out_Code", "" }; //넘기는 파라메터 에 따라 설정
                 * frmCommonPopup.ARRAY_CODE = new object[2] { _luTVEND.CodeText, _luTVEND.NameText };
                 * frmCommonPopup xfrmcommonPopup = new CORE.UserForm.frmCommonPopup("VendCodeInfo"); //유저컨트롤러 설정 부분
                 *
                 * xfrmcommonPopup.ShowDialog();
                 *
                 * if (xfrmcommonPopup.dtReturn == null)
                 * {
                 *  xfrmcommonPopup.Dispose();
                 *  return;
                 * }
                 *
                 * if (xfrmcommonPopup.dtReturn != null && xfrmcommonPopup.dtReturn.Rows.Count > 0)
                 * {
                 *  _luTVEND.CodeText = xfrmcommonPopup.dtReturn.Rows[0]["VEND_CODE"].ToString();        // 거래처코드 : 거래처명
                 *  _luTVEND.NameText = xfrmcommonPopup.dtReturn.Rows[0]["VEND_NAME"].ToString();
                 * }
                 *
                 * xfrmcommonPopup.Dispose();
                 */

                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

                // frmCommonPopup.ARRAY = new object[2] { "vend_code_O", _luTVEND.NameText }; //넘기는 파라메터 에 따라 설정
                // frmCommonPopup.ARRAY_CODE = new object[2] { _luTVEND.CodeText, _luTVEND.NameText };
                frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("CommonCode"); //유저컨트롤러 설정 부분

                xfrmCommonPopup.ShowDialog();

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

                if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                {
                    //        _luTVEND.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["CD"].ToString();
                    //        _luTVEND.NameText = xfrmCommonPopup.dtReturn.Rows[0]["CD_NM"].ToString();
                }
                xfrmCommonPopup.Dispose();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
示例#7
0
        private void _luTVEND__OnOpenClick(object sender, EventArgs e)
        {
            frmCommonPopup.USER_CODE     = _pUSER_CODE;
            frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
            frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;


            // ( Vend_In_Code 매입, 공통, Vend_Out_Code 매출 공통 ) 코드
            frmCommonPopup.ARRAY = new object[2] {
                "vend_code_O", ""
            };                                                          //넘기는 파라메터 에 따라 설정
            frmCommonPopup.ARRAY_CODE = new object[2] {
                _luTVEND.CodeText, _luTVEND.NameText
            };                                                                               //
            frmCommonPopup xfrmcommonPopup = new CORE.UserForm.frmCommonPopup("CommonCode"); //유저컨트롤러 설정 부분

            xfrmcommonPopup.ShowDialog();

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

            if (xfrmcommonPopup.dtReturn != null && xfrmcommonPopup.dtReturn.Rows.Count > 0)
            {
                _luTVEND.CodeText = xfrmcommonPopup.dtReturn.Rows[0]["VEND_CODE"].ToString();        // 거래처코드 : 거래처명
                _luTVEND.NameText = xfrmcommonPopup.dtReturn.Rows[0]["VEND_NAME"].ToString();
            }

            xfrmcommonPopup.Dispose();
        }
示例#8
0
        private void _luTCONTRACT_ID__OnButtonPressed(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            frmCommonPopup.USER_CODE     = _pUSER_CODE;
            frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
            frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

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

            xfrmCommonPopup.ShowDialog();

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

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

            xfrmCommonPopup.Dispose();
        }
示例#9
0
        private void _btTPART_Click(object sender, EventArgs e)
        {
            //VendCostInfo
            frmCommonPopup.USER_CODE     = _pUSER_CODE;
            frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
            frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

            frmCommonPopup.ARRAY = new object[2] {
                "Material_Code", ""
            };                                                            //넘기는 파라메터 에 따라 설정

            //ucVendCodeInfoPopup xucVendCodeInfoPopup = new CORE.UserControls.ucVendCodeInfoPopup("PartCodeInfo"); //유저컨트롤러 설정 부분
            frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("VendCostInfo"); //유저컨트롤러 설정 부분

            xfrmCommonPopup.ShowDialog();

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

            if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
            {
                _luTPART_ALL.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["PART_CODE"].ToString();
                _luTPART_ALL.NameText = xfrmCommonPopup.dtReturn.Rows[0]["PART_NAME"].ToString();
            }

            xfrmCommonPopup.Dispose();
        }
        private void _luTPART__OnOpenClick(object sender, EventArgs e)
        {
            //검색조건 자재 팝업 버튼 이벤트

            frmCommonPopup.USER_CODE     = _pUSER_CODE;
            frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
            frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

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

            xfrmCommonPopup.ShowDialog();

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

            if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
            {
                _luTPART.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["PART_CODE"].ToString();
                _luTPART.NameText = xfrmCommonPopup.dtReturn.Rows[0]["PART_NAME"].ToString();
            }
            xfrmCommonPopup.Dispose();
        }
示例#11
0
        private void _luTPART__OnOpenClick(object sender, EventArgs e)
        {
            try
            {
                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

                frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("PartCodeInfo"); //유저컨트롤러 설정 부분

                xfrmCommonPopup.ShowDialog();

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

                if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                {
                }

                xfrmCommonPopup.Dispose();
            }
            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
            {
                string service_name = null;


                if (_pARRAY[1].ToString() == "1004")
                {
                    service_name = "Material_Code_T01";
                }
                else
                {
                    service_name = "Material_Code_T02";
                }

                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = fntPARENT_FONT;

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

                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]["CD"].ToString();
                    _luTPART_NAME.Text = xfrmCommonPopup.dtReturn.Rows[0]["CD_NM"].ToString();

                    _pCRUD = "U"; // 발주내역 없이 조회하는 경우, U로 보냄

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

                xfrmCommonPopup.Dispose();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
示例#13
0
        private void _luCONTRACT_ID__OnButtonPressed(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            try
            {
                try
                {
                    frmCommonPopup.USER_CODE     = _pUSER_CODE;
                    frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                    frmCommonPopup.FONT_TYPE     = fntPARENT_FONT;

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

                    xfrmCommonPopup.ShowDialog();

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

                    if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                    {
                        _luPLAN_ORDER_ID.Text            = xfrmCommonPopup.dtReturn.Rows[0]["PLAN_ORDER"].ToString();
                        _luREFERENCE_ID.Text             = xfrmCommonPopup.dtReturn.Rows[0]["REFERENCE_ID"].ToString();
                        _luPLAN_COUNT.Text               = xfrmCommonPopup.dtReturn.Rows[0]["PLAN_ORDER_QTY"].ToString();
                        _luT_CONFIGURATION_MST_NAME.Text = xfrmCommonPopup.dtReturn.Rows[0]["CONFIGURATION_MST_NAME"].ToString();
                        _luT_CONFIGURATION_NAME.Text     = xfrmCommonPopup.dtReturn.Rows[0]["CONFIGURATION_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()));
                }
            }
            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);

                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

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


                xfrmCommonPopup.ShowDialog();

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

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

                xfrmCommonPopup.Dispose();


                if (xfrmCommonPopup.dtReturn.Rows.Count != 0)

                {
                    Form_SearchButtonClicked(null, null);
                }
            }
            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);
            }
        }
        private void CoFAS_DevExpressManager__OnButtonPressed(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            //_gdMAIN_VIEW.EditingValue = "";

            GridView view = sender as GridView;

            switch (e.Button.Caption.ToString())
            {
            case "PART_BUTTON":     //해당 그리드에 필드명 // 2개 이상 그리드의 버튼 항목들은 버튼 타입에 필드 명칭이 모두 다르게 설정 되어야됨.
                frmCommonPopup.CORP_CDDE     = _pCORP_CODE;
                frmCommonPopup.CRUD          = "R";
                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

                frmCommonPopup.ARRAY = new object[2] {
                    "product_part_code", ""
                };                                                                    //넘기는 파라메터 에 따라 설정
                string strCODE = _gdSUB_VIEW.GetRowCellValue(_gdSUB_VIEW.FocusedRowHandle, _gdSUB_VIEW.Columns["PART_CODE"]) == null ? "" : _gdSUB_VIEW.GetRowCellValue(_gdSUB_VIEW.FocusedRowHandle, _gdSUB_VIEW.Columns["PART_CODE"]).ToString();
                string strNAME = _gdSUB_VIEW.GetRowCellValue(_gdSUB_VIEW.FocusedRowHandle, _gdSUB_VIEW.Columns["PART_NAME"]) == null ? "" : _gdSUB_VIEW.GetRowCellValue(_gdSUB_VIEW.FocusedRowHandle, _gdSUB_VIEW.Columns["PART_NAME"]).ToString();

                frmCommonPopup.ARRAY_CODE = new object[2] {
                    strCODE, strNAME
                };

                frmCommonPopup xfrmcommonPopup = new CORE.UserForm.frmCommonPopup("CommonCode");     //유저컨트롤러 설정 부분

                xfrmcommonPopup.ShowDialog();

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

                if (xfrmcommonPopup.dtReturn != null && xfrmcommonPopup.dtReturn.Rows.Count > 0)
                {
                    _gdSUB_VIEW.SetRowCellValue(_gdSUB_VIEW.FocusedRowHandle, _gdSUB_VIEW.Columns["PART_CODE"], xfrmcommonPopup.dtReturn.Rows[0]["CD"].ToString());
                    _gdSUB_VIEW.SetRowCellValue(_gdSUB_VIEW.FocusedRowHandle, _gdSUB_VIEW.Columns["PART_NAME"], xfrmcommonPopup.dtReturn.Rows[0]["CD_NM"].ToString());
                }

                xfrmcommonPopup.Dispose();
                break;
            }
        }
示例#16
0
        private void _btPRODUCTION_ORDER_Click(object sender, EventArgs e)
        {
            try
            {
                // frmCommonPopup._pWINDOW_NAME = _pWINDOW_NAME;
                ////frmCommonPopup.CORP_CDDE = _pCORP_CODE;
                // frmCommonPopup.USER_CODE = _pUSER_CODE;
                // frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                // frmCommonPopup.FONT_TYPE = _pFONT_SETTING;
                //
                // frmCommonPopup.PASS_PARENT_WINDOW_NAME = _pWINDOW_NAME;
                // frmCommonPopup.PASS_USER_CODE = _pUSER_CODE;
                // frmCommonPopup.PASS_PARENT_LANGUAGE = _pLANGUAGE_TYPE;
                // frmCommonPopup.PASS_PARENT_FONT = _pFONT_SETTING;
                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;
                //frmCommonPopup.ARRAY = new object[2] { "common_code", "CD99" }; //넘기는 파라메터 에 따라 설정

                frmCommonPopup xfrmcommonPopup = new CORE.UserForm.frmCommonPopup("ProductionOrderInfo"); //유저컨트롤러 설정 부분

                xfrmcommonPopup.ShowDialog();

                if (xfrmcommonPopup.dtReturn == null)
                {
                    return;
                }

                xfrmcommonPopup.dtReturn.Rows[0][0].ToString();
                // 리턴 받는 데이터의 값은 해당 그리드 뷰 필드에 설정.
                //_gdMAIN_VIEW.SetRowCellValue(_gdMAIN_VIEW.FocusedRowHandle, _gdMAIN_VIEW.Columns["TEST1"], xfrmcommonPopup.dtReturn.Rows[0]["CD"].ToString());
                //_gdMAIN_VIEW.SetRowCellValue(_gdMAIN_VIEW.FocusedRowHandle, _gdMAIN_VIEW.Columns["TEST2"], xfrmcommonPopup.dtReturn.Rows[0]["CD_NM"].ToString());

                xfrmcommonPopup.Dispose();
            }
            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);
            }
        }
        private void _luT_BAD_INFO_OnOpenClick(object sender, EventArgs e)
        {
            try
            {
                frmCommonPopup.CRUD          = "R";
                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

                // 0 서비스네임 1 공통코드경우 CODE_TYPE 으로구분자 올린다.
                frmCommonPopup.ARRAY = new object[2] {
                    "Bad_info", ""
                };
                frmCommonPopup.ARRAY_CODE = new object[2] {
                    _luT_BAD_INFO.CodeText.ToString(), _luT_BAD_INFO.NameText.ToString()
                };
                //20190321 기존 공통팝업용
                //frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("CommonCode"); //유저컨트롤러 설정 부분

                //아래부분에서 그리드/언어가 안뜰경우에는 grid_info_mst/grid_info_detail/language_info_mst 추가해야함
                frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("CommonCode_BadCod");  //유저컨트롤러 설정 부분


                xfrmCommonPopup.ShowDialog();

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

                if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                {
                    _luT_BAD_INFO.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["CD"].ToString();
                    _luT_BAD_INFO.NameText = xfrmCommonPopup.dtReturn.Rows[0]["CD_NM"].ToString();
                }

                xfrmCommonPopup.Dispose();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
示例#18
0
        private void Form_AddItemButtonClicked(object pSender, EventArgs pEventArgs)
        {
            try
            {
                frmCommonPopup.CRUD          = "R";
                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

                // 0 서비스네임 1 공통코드경우 CODE_TYPE 으로구분자 올린다.
                frmCommonPopup.ARRAY = new object[2] {
                    "Product_Code_R", ""
                };
                frmCommonPopup.ARRAY_CODE = new object[2] {
                    "", ""
                };
                frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("CommonCode"); //유저컨트롤러 설정 부분

                xfrmCommonPopup.ShowDialog();

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

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

                    //    SubFind_DisplayData();
                }

                xfrmCommonPopup.Dispose();
            }
            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);
            }
        }
        private void _luVEND__OnButtonPressed(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            try
            {
                //VendCostInfo
                frmCommonPopup.CRUD          = "R";
                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = fntPARENT_FONT;



                // 0 서비스네임 1 공통코드경우 CODE_TYPE 으로구분자 올린다.
                frmCommonPopup.ARRAY = new object[2] {
                    "Vend_Code_O", ""
                };

                //검색조건 전달 0 코드 1 명칭
                frmCommonPopup.ARRAY_CODE = new object[2] {
                    _luVEND.CodeText.ToString(), _luVEND.NameText.ToString()
                };

                //ucVendCodeInfoPopup xucVendCodeInfoPopup = new CORE.UserControls.ucVendCodeInfoPopup("PartCodeInfo"); //유저컨트롤러 설정 부분
                frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("CommonCode"); //유저컨트롤러 설정 부분
                xfrmCommonPopup.ShowDialog();

                if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                {
                    _luVEND.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["CD"].ToString();
                    _luVEND.NameText = xfrmCommonPopup.dtReturn.Rows[0]["CD_NM"].ToString();

                    //데이터 세팅
                }

                xfrmCommonPopup.Dispose();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
示例#20
0
        private void _luTPART__OnOpenClick(object sender, EventArgs e)
        {
            //검색조건 자재 팝업 버튼 이벤트
            //VendCostInfo
            frmCommonPopup.CRUD          = "R";
            frmCommonPopup.USER_CODE     = _pUSER_CODE;
            frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
            frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;



            // 0 서비스네임 1 공통코드경우 CODE_TYPE 으로구분자 올린다.
            frmCommonPopup.ARRAY = new object[2] {
                "Material_Code", ""
            };

            //검색조건 전달 0 코드 1 명칭
            frmCommonPopup.ARRAY_CODE = new object[2] {
                _luTPART.CodeText.ToString(), _luTPART.NameText.ToString()
            };

            //ucVendCodeInfoPopup xucVendCodeInfoPopup = new CORE.UserControls.ucVendCodeInfoPopup("PartCodeInfo"); //유저컨트롤러 설정 부분
            frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("CommonCode"); //유저컨트롤러 설정 부분

            xfrmCommonPopup.ShowDialog();

            if (xfrmCommonPopup.dtReturn == null)
            {
                return;
            }
            if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
            {
                _luTPART.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["CD"].ToString() == null ? "" : xfrmCommonPopup.dtReturn.Rows[0]["CD"].ToString();
                _luTPART.NameText = xfrmCommonPopup.dtReturn.Rows[0]["CD_NM"].ToString() == null ? "" : xfrmCommonPopup.dtReturn.Rows[0]["CD_NM"].ToString();
            }
            // 리턴 받는 데이터의 값은 해당 그리드 뷰 필드에 설정.
            //_gdMAIN_VIEW.SetRowCellValue(_gdMAIN_VIEW.FocusedRowHandle, _gdMAIN_VIEW.Columns["TEST1"], xucVendCodeInfoPopup.dtReturn.Rows[0]["CD"].ToString());
            //_gdMAIN_VIEW.SetRowCellValue(_gdMAIN_VIEW.FocusedRowHandle, _gdMAIN_VIEW.Columns["TEST2"], xucVendCodeInfoPopup.dtReturn.Rows[0]["CD_NM"].ToString());
            xfrmCommonPopup.Dispose();
        }
        private void _btSELECT_Click(object sender, EventArgs e)
        {
            try
            {
                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"); //유저컨트롤러 설정 부분

                xfrmCommonPopup.ShowDialog();

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

                if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                {
                    _luPART_CODE.Text = xfrmCommonPopup.dtReturn.Rows[0]["PART_CODE"].ToString();
                    _luPART_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()));
            }
        }
示例#22
0
        private void _luTTERMINAL_OnOpenClick(object sender, EventArgs e)
        {
            try
            {
                frmCommonPopup.CRUD          = "R";
                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

                // 0 서비스네임 1 공통코드경우 CODE_TYPE 으로구분자 올린다.
                frmCommonPopup.ARRAY = new object[2] {
                    "TERMINAL", ""
                };
                frmCommonPopup.ARRAY_CODE = new object[2] {
                    _luTTERMINAL.CodeText.ToString(), _luTTERMINAL.NameText.ToString()
                };
                frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("CommonCode"); //유저컨트롤러 설정 부분

                xfrmCommonPopup.ShowDialog();

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

                if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                {
                    _luTTERMINAL.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["CD"].ToString();
                    _luTTERMINAL.NameText = xfrmCommonPopup.dtReturn.Rows[0]["CD_NM"].ToString();
                }

                xfrmCommonPopup.Dispose();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
示例#23
0
        private void _luGATHERING_CODE__OnOpenClick(object sender, EventArgs e)
        {
            try
            {
                //검색조건 자재 팝업 버튼 이벤트

                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

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

                xfrmCommonPopup.ShowDialog();

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

                if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                {
                    _luGATHERING_CODE.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["CD"].ToString();
                    _luGATHERING_CODE.NameText = xfrmCommonPopup.dtReturn.Rows[0]["CD_NM"].ToString();
                }
                xfrmCommonPopup.Dispose();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
        private void _btTPART_Click(object sender, EventArgs e)
        {
            ////VendCostInfo
            //frmCommonPopup.USER_CODE = _pUSER_CODE;
            //frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
            //frmCommonPopup.FONT_TYPE = _pFONT_SETTING;

            //frmCommonPopup.ARRAY = new object[2] { "Material_Code", "" }; //넘기는 파라메터 에 따라 설정

            ////ucVendCodeInfoPopup xucVendCodeInfoPopup = new CORE.UserControls.ucVendCodeInfoPopup("PartCodeInfo"); //유저컨트롤러 설정 부분
            //frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("VendCostInfo"); //유저컨트롤러 설정 부분
            //xfrmCommonPopup.ShowDialog();

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

            //if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
            //{
            //    _luTPART_ALL.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["PART_CODE"].ToString();
            //    _luTPART_ALL.NameText = xfrmCommonPopup.dtReturn.Rows[0]["PART_NAME"].ToString();
            //}

            //xfrmCommonPopup.Dispose();

            try
            {
                frmCommonPopup.CRUD          = "R";
                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

                // 0 서비스네임 1 공통코드경우 CODE_TYPE 으로구분자 올린다.
                frmCommonPopup.ARRAY = new object[2] {
                    "Product_Code_R", ""
                };
                frmCommonPopup.ARRAY_CODE = new object[2] {
                    _luTPART_ALL.CodeText.ToString(), _luTPART_ALL.NameText.ToString()
                };
                frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("CommonCode"); //유저컨트롤러 설정 부분

                xfrmCommonPopup.ShowDialog();

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

                if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                {
                    _luTPART_ALL.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["CD"].ToString();
                    _luTPART_ALL.NameText = xfrmCommonPopup.dtReturn.Rows[0]["CD_NM"].ToString();
                }

                xfrmCommonPopup.Dispose();
            }
            catch (ExceptionManager pExceptionManager)
            {
                CoFAS_DevExpressManager.ShowErrorMessage(string.Format("{0}\n{1}", pExceptionManager.Exception.Message.ToString(), pExceptionManager.TargetSite.ToString()));
            }
        }
        private void _btTPART_Click(object sender, EventArgs e)
        {/*
          * //VendCostInfo
          * frmCommonPopup.USER_CODE = _pUSER_CODE;
          * frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
          * frmCommonPopup.FONT_TYPE = _pFONT_SETTING;
          *
          * frmCommonPopup.ARRAY = new object[2] { "Material_Code", "" }; //넘기는 파라메터 에 따라 설정
          *
          * //ucVendCodeInfoPopup xucVendCodeInfoPopup = new CORE.UserControls.ucVendCodeInfoPopup("PartCodeInfo"); //유저컨트롤러 설정 부분
          * frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("VendCostInfo"); //유저컨트롤러 설정 부분
          * xfrmCommonPopup.ShowDialog();
          *
          * if (xfrmCommonPopup.dtReturn == null)
          * {
          *     xfrmCommonPopup.Dispose();
          *     return;
          * }
          *
          * if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
          * {
          *     _luTPART_ALL.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["PART_CODE"].ToString();
          *     _luTPART_ALL.NameText = xfrmCommonPopup.dtReturn.Rows[0]["PART_NAME"].ToString();
          * }
          *
          * xfrmCommonPopup.Dispose();*/
            try
            {
                frmCommonPopup.USER_CODE     = _pUSER_CODE;
                frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

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

                xfrmCommonPopup.ShowDialog();

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

                if (xfrmCommonPopup.dtReturn != null && xfrmCommonPopup.dtReturn.Rows.Count > 0)
                {
                    _luTPART_ALL.CodeText = xfrmCommonPopup.dtReturn.Rows[0]["PART_CODE"].ToString();
                    _luTPART_ALL.NameText = xfrmCommonPopup.dtReturn.Rows[0]["PART_NAME"].ToString();
                }

                xfrmCommonPopup.Dispose();
            }
            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 (_pWorkResultRegisterEntity.PROCESS_CODE == "")
                    {
                        CoFAS_DevExpressManager.ShowInformationMessage(_pMSG_PROCESS_CODE);
                        return;
                    }
                    // 작업상태 완료시 체크 - 수정불가
                    if (_pWorkResultRegisterEntity.USE_YN == "ES011003")
                    {
                        CoFAS_DevExpressManager.ShowInformationMessage(_pMSG_STATUS_OK);
                        return;
                    }

                    // 팝업에 파라미터 전송
                    frmCommonPopup.USER_CODE     = _pUSER_CODE;
                    frmCommonPopup.LANGUAGE_TYPE = _pLANGUAGE_TYPE;
                    frmCommonPopup.FONT_TYPE     = _pFONT_SETTING;

                    _pLocation_Code           = _pWorkResultRegisterEntity.PRODUCTION_ORDER_ID;
                    frmCommonPopup.ARRAY_CODE = new object[7] {
                        _pWorkResultRegisterEntity.PRODUCTION_ORDER_ID,                              //0
                        _pWorkResultRegisterEntity.PART_CODE,                                        //1
                        _pWorkResultRegisterEntity.PART_NAME,                                        //2
                        _pWorkResultRegisterEntity.PROCESS_CODE1                                     //3
                        , _pWorkResultRegisterEntity.PROCESS_NAME1                                   //4
                        , _pWorkResultRegisterEntity.WORKCENTER_CODE                                 //5
                        , _pWorkResultRegisterEntity.WORKCENTER_NAME                                 //6
                    };
                    frmCommonPopup xfrmCommonPopup = new CORE.UserForm.frmCommonPopup("WorkResult"); //유저컨트롤러 설정 부분

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