private void _ucbtRESULT_REG_Click(object sender, EventArgs e)
        {
            //HPNC일경우 제조에서 검사의뢰 통과에 대해서 실적등록
            if (DBManager.InitDatabaseName != "coever_mes_glenzen")
            {
                // 실적등록
                _pUserEntity.PRODUCTION_ORDER_ID = _luORDER_ID.Text;
                frmPOPSelect_INSPECT_COSMETICS frmkey = new frmPOPSelect_INSPECT_COSMETICS(_pUserEntity);
                if (frmkey.ShowDialog() == DialogResult.OK)
                {
                    //string PopupValue = frmkey.ReturnValue1;
                    //DisplayMessage(_ucbtRESULT_REG.Text + " -> " + PopupValue);
                    MainFind_DisplayData();
                }
            }
            else
            //글랜젠용, 검사의뢰없이 실적등록
            {
                // 실적등록
                SimpleButton pCmd = sender as SimpleButton;

                frmPopupKeypad frmkey = new frmPopupKeypad();
                frmkey.titleName = pCmd.Text;

                //실적등록에서 OK누를경우 리턴값
                string PopupValue = string.Empty;
                if (frmkey.ShowDialog() == DialogResult.OK)
                {
                    PopupValue = frmkey.ReturnValue1;
                    //리턴값이 빈값이 아니고 0도 아닐경우 실적등록
                    if (PopupValue != "0" && PopupValue != "")
                    {
                        _pPOPSelect_INSPECT_COSMETICSEntity.RESOURCE_CODE   = "";                // _luPROCESS_CODE.GetValue();
                        _pPOPSelect_INSPECT_COSMETICSEntity.COLLECTION_DATE = DateTime.Now.ToString("yyyyMMddHHmmss");
                        _pPOPSelect_INSPECT_COSMETICSEntity.PROPERTY_VALUE  = _luORDER_ID.Text;; // _pPOPProductionOrderEntity.PRODUCTION_ORDER_ID;// _gdMAIN_VIEW.GetFocusedRowCellValue("PRODUCTION_ORDER_ID").ToString();
                        //CD501001 : 양품
                        //CD501002 : 불량
                        _pPOPSelect_INSPECT_COSMETICSEntity.CONDITION_CODE   = "CD501001";
                        _pPOPSelect_INSPECT_COSMETICSEntity.COLLECTION_VALUE = PopupValue.Replace(",", "");

                        bool isError = false;
                        isError = new frmPOPMain_PRODUCT_COSMETICSBusiness().frmPOPMain_PRODUCT_COSMETICS_Save(_pPOPSelect_INSPECT_COSMETICSEntity);

                        if (!isError)
                        {
                            //this.DialogResult = DialogResult.OK;
                            MainFind_DisplayData();
                        }
                        //작업지시상태 업데이트
                    }
                }
            }
        }
예제 #2
0
        private void _ucbtKEYPAD_Click(object sender, EventArgs e)
        {
            //키패드 호출
            frmPopupKeypad frmkey = new frmPopupKeypad();

            // frmkey.titleName ="수량입력";
            if (frmkey.ShowDialog() == DialogResult.OK)
            {
                string PopupValue = frmkey.ReturnValue1;
                //_gdSUB_VIEW.GetFocusedRowCellValue(_gdSUB_VIEW.Columns["INPUT_QTY"]).ToString()
                _gdMAIN_VIEW.SetFocusedRowCellValue(_gdMAIN_VIEW.Columns["INPUT_QTY"], PopupValue);
            }
        }
예제 #3
0
        private void btnCmd_Click(object pSender, EventArgs pEventArgs)
        {
            SimpleButton pCmd = pSender as SimpleButton;

            string sCls = pCmd.Name.Substring(6, 2);

            frmPopupKeypad frmkey = new frmPopupKeypad();

            switch (sCls)
            {
            case "10":
                // 비가동 시작 및 종료

                break;



            default: break;
            }
        }
        private void _ucbtRESULT_REG_Click(object sender, EventArgs e)
        {
            if ((_pPOPProductionOrderEntity.PRODUCTION_ORDER_ID == "") || (_pPOPProductionOrderEntity.PRODUCTION_ORDER_ID == null))
            {
                CoFAS_DevExpressManager.ShowInformationMessage("작업지시를 선택해주세요.");
                return;
            }
            // 실적등록
            frmPopupKeypad frmkey = new frmPopupKeypad();

            if (frmkey.ShowDialog() == DialogResult.OK)
            {
                string PopupValue = frmkey.ReturnValue1;

                _pPOPProductionOrderEntity.COLLECTION_DATE   = System.DateTime.Now.ToString("yyyyMMddHHmmssfff");
                _pPOPProductionOrderEntity.PRODUCTION_OK_QTY = PopupValue;
                _pPOPProductionOrderEntity.CRUD      = "C";
                _pPOPProductionOrderEntity.USER_CODE = _pUSER_CODE;


                bool isError = false;


                isError = new frmPOPMain_PRODUCT_BIOCERRABusiness().frmPOPMain_PRODUCT_BIOCERRA_Result_Sub1(_pPOPProductionOrderEntity);

                if (isError)
                {
                    //오류 발생.
                    CoFAS_DevExpressManager.ShowInformationMessage("저장 오류 발생! 데이터를 확인 하세요.");
                    //  CoFAS_DevExpressManager.ShowInformationMessage(_pMSG_SAVE_ERROR);
                    //화면 표시.
                }
                else
                {
                    CoFAS_DevExpressManager.ShowInformationMessage("저장 처리 되었습니다.");
                    //CoFAS_DevExpressManager.ShowInformationMessage(_pMSG_SAVE);
                }
            }
        }
예제 #5
0
        private void _ucbtRESULT_REG_Click(object sender, EventArgs e)
        {
            if (_luORDER_ID.Text == "")
            {
                CoFAS_DevExpressManager.ShowInformationMessage("작업지시를 먼저 선택해주세요.");
                return;
            }

            // 실적등록
            frmPopupKeypad frmkey = new frmPopupKeypad();

            frmkey.titleName = _luORDER_ID.Text;

            //실적등록
            string PopupValue = string.Empty;

            if (frmkey.ShowDialog() == DialogResult.OK)
            {
                PopupValue = frmkey.ReturnValue1;

                InputResultData_Save(PopupValue);
            }
        }
        private void btnCmd_Click(object pSender, EventArgs pEventArgs)
        {
            SimpleButton pCmd       = pSender as SimpleButton;
            int          Acitve_Row = 0;

            string sCls = pCmd.Name.Substring(6, 2);

            switch (sCls)
            {
            case "10":
                // 최상위
                if (_gdMAIN_VIEW.FocusedRowHandle <= _gdMAIN_VIEW.RowCount - 1)
                {
                    _gdMAIN_VIEW.FocusedRowHandle = 0;
                    Acitve_Row = _gdMAIN_VIEW.FocusedRowHandle;
                    _gdMAIN_VIEW.SelectRow(Acitve_Row);
                }
                break;

            case "20":
                // 위로
                if (_gdMAIN_VIEW.FocusedRowHandle <= _gdMAIN_VIEW.RowCount - 1)
                {
                    _gdMAIN_VIEW.FocusedRowHandle--;
                    Acitve_Row = _gdMAIN_VIEW.FocusedRowHandle;
                    _gdMAIN_VIEW.SelectRow(Acitve_Row);

                    _luTPART_NAME.Text           = _gdMAIN_VIEW.GetFocusedRowCellValue("PART_NAME").ToString();
                    _luTPART_CODE.Text           = _gdMAIN_VIEW.GetFocusedRowCellValue("PART_CODE").ToString();
                    _luTINSPECT_STATUS.Text      = _gdMAIN_VIEW.GetFocusedRowCellDisplayText("INSPECT_STATUS").ToString();
                    _luTAPPROVAL_YN.Text         = _gdMAIN_VIEW.GetFocusedRowCellValue("INSPECT_APPROVAL").ToString() == "" ? _gdMAIN_VIEW.GetFocusedRowCellValue("INSPECT_APPROVAL").ToString() : _gdMAIN_VIEW.GetFocusedRowCellDisplayText("INSPECT_APPROVAL").ToString();
                    _luTPRODUCTION_ORDER_ID.Text = _gdMAIN_VIEW.GetFocusedRowCellValue("PRODUCTION_ORDER_ID").ToString();
                }
                break;


            case "30":

                if (_gdMAIN_VIEW.RowCount <= 0)
                {
                    CoFAS_DevExpressManager.ShowInformationMessage("선택된 품목이 없습니다.");
                    return;
                }

                if (_gdMAIN_VIEW.GetFocusedRowCellValue("INSPECT_APPROVAL").ToString() != "QC020001")
                {
                    if (DBManager.InitDatabaseName == "coever_mes_glenzen")
                    {
                        if (_gdMAIN_VIEW.GetFocusedRowCellDisplayText("PROCESS_CODE_MST").ToString() == "포장")
                        {
                            CoFAS_DevExpressManager.ShowInformationMessage("시험검사가 승인이 완료된 것만 등록가능합니다.");
                            return;
                        }
                    }
                    else
                    {
                        CoFAS_DevExpressManager.ShowInformationMessage("시험검사가 승인이 완료된 것만 등록가능합니다.");
                        return;
                    }
                }
                else
                {
                }
                if (_luTPART_NAME.Text == "")
                {
                    CoFAS_DevExpressManager.ShowInformationMessage("시험검사를 선택해주세요.");
                    return;
                }
                // 실적등록
                // 검사의뢰  선택 -> 실적입력 -> 리턴
                // 실적등록
                frmPopupKeypad frmkey = new frmPopupKeypad();
                frmkey.titleName = pCmd.Text;

                //실적등록에서 OK누를경우 리턴값
                string PopupValue = string.Empty;
                if (frmkey.ShowDialog() == DialogResult.OK)
                {
                    PopupValue = frmkey.ReturnValue1;
                    //리턴값이 빈값이 아니고 0도 아닐경우 실적등록
                    if (PopupValue != "0" && PopupValue != "")
                    {
                        _pPOPSelect_INSPECT_COSMETICSEntity.RESOURCE_CODE   = "";      // _luPROCESS_CODE.GetValue();
                        _pPOPSelect_INSPECT_COSMETICSEntity.COLLECTION_DATE = DateTime.Now.ToString("yyyyMMddHHmmss");
                        _pPOPSelect_INSPECT_COSMETICSEntity.PROPERTY_VALUE  = _gdMAIN_VIEW.GetFocusedRowCellValue("PRODUCTION_ORDER_ID").ToString();
                        //CD501001 : 양품
                        //CD501002 : 불량
                        _pPOPSelect_INSPECT_COSMETICSEntity.CONDITION_CODE   = "CD501001";
                        _pPOPSelect_INSPECT_COSMETICSEntity.COLLECTION_VALUE = PopupValue.Replace(",", "");

                        _pPOPSelect_INSPECT_COSMETICSEntity.PART_CODE = _gdMAIN_VIEW.GetFocusedRowCellValue("PART_CODE").ToString();

                        //양품등록
                        bool isError = false;
                        isError = new frmPOPMain_PRODUCT_COSMETICSBusiness().frmPOPMain_PRODUCT_COSMETICS_Save(_pPOPSelect_INSPECT_COSMETICSEntity);
                        if (!isError)
                        {
                            //포장
                            if ((_gdMAIN_VIEW.GetFocusedRowCellValue("PROCESS_CODE_MST").ToString() == "PC010002") || (_gdMAIN_VIEW.GetFocusedRowCellValue("PROCESS_CODE_MST").ToString() == "PT040002"))
                            {
                                //포장일경우 저장 프로시져
                                //semi_mate_out_p_in : 반제품출고, 부자재출고,제품입고
                                _pPOPSelect_INSPECT_COSMETICSEntity.CRUD = "semi_mate_out_p_in";

                                _pPOPSelect_INSPECT_COSMETICSEntity.INOUT_TYPE   = "O";
                                _pPOPSelect_INSPECT_COSMETICSEntity.INOUT_ID     = "";
                                _pPOPSelect_INSPECT_COSMETICSEntity.INOUT_DATE   = DateTime.Now.ToString("yyyyMMdd"); // _luINOUT_DATE.DateTime.ToString("yyyyMMdd");
                                _pPOPSelect_INSPECT_COSMETICSEntity.INOUT_SEQ    = "000000";
                                _pPOPSelect_INSPECT_COSMETICSEntity.INOUT_CODE   = "PD040020";                        //  PD040020 = 생산출고 INOUT_CODE -> TYPE
                                _pPOPSelect_INSPECT_COSMETICSEntity.VEND_CODE    = "V00000";
                                _pPOPSelect_INSPECT_COSMETICSEntity.PART_CODE    = _gdMAIN_VIEW.GetFocusedRowCellValue("PART_CODE").ToString();
                                _pPOPSelect_INSPECT_COSMETICSEntity.INOUT_QTY    = PopupValue.Replace(",", "").ToString() == "" ? "0" : PopupValue.Replace(",", "").ToString();
                                _pPOPSelect_INSPECT_COSMETICSEntity.PART_UNIT    = "";                                                                    // _luUNIT_CODE.GetValue();
                                _pPOPSelect_INSPECT_COSMETICSEntity.UNITCOST     = "0";                                                                   // _luUNITCOST.Text.ToString() == "" ? "0" : _luUNITCOST.Text.ToString().ToString();
                                _pPOPSelect_INSPECT_COSMETICSEntity.COST         = "0";                                                                   // _luCOST.Text.ToString() == "" ? "0" : _luCOST.Text.ToString().ToString();
                                _pPOPSelect_INSPECT_COSMETICSEntity.REFERENCE_ID = _gdMAIN_VIEW.GetFocusedRowCellValue("PRODUCTION_ORDER_ID").ToString(); // _luWORKORDERID.Text.ToString();   //포장지시번호로 BOM에서 떨구기
                                _pPOPSelect_INSPECT_COSMETICSEntity.REMARK       = "";                                                                    // _luREMARK.Text.ToString();
                                _pPOPSelect_INSPECT_COSMETICSEntity.USE_YN       = "Y";                                                                   // _luUSE_YN.GetValue();

                                isError = new frmPOPMain_PRODUCT_COSMETICSBusiness().ucWorkResultPopup_T01_Info_Save(_pPOPSelect_INSPECT_COSMETICSEntity);
                                if (!isError)
                                {
                                    CoFAS_DevExpressManager.ShowInformationMessage(_pMSG_SAVE);
                                }
                                else
                                {
                                    CoFAS_DevExpressManager.ShowInformationMessage(_pMSG_SAVE_ERROR);
                                }
                            }
                            else
                            {
                                //semi_in : 반제품입고
                                _pPOPSelect_INSPECT_COSMETICSEntity.CRUD = "semi_in";

                                _pPOPSelect_INSPECT_COSMETICSEntity.INOUT_TYPE   = "I";
                                _pPOPSelect_INSPECT_COSMETICSEntity.INOUT_ID     = "";
                                _pPOPSelect_INSPECT_COSMETICSEntity.INOUT_DATE   = DateTime.Now.ToString("yyyyMMdd"); // _luINOUT_DATE.DateTime.ToString("yyyyMMdd");
                                _pPOPSelect_INSPECT_COSMETICSEntity.INOUT_SEQ    = "000000";
                                _pPOPSelect_INSPECT_COSMETICSEntity.INOUT_CODE   = "PD031014";                        //  PD031014 = 생산입고 INOUT_CODE -> TYPE
                                _pPOPSelect_INSPECT_COSMETICSEntity.VEND_CODE    = "V00000";
                                _pPOPSelect_INSPECT_COSMETICSEntity.PART_CODE    = _gdMAIN_VIEW.GetFocusedRowCellValue("PART_CODE").ToString();
                                _pPOPSelect_INSPECT_COSMETICSEntity.INOUT_QTY    = PopupValue.Replace(",", "").ToString() == "" ? "0" : PopupValue.Replace(",", "").ToString();
                                _pPOPSelect_INSPECT_COSMETICSEntity.PART_UNIT    = "";  // _luUNIT_CODE.GetValue();
                                _pPOPSelect_INSPECT_COSMETICSEntity.UNITCOST     = "0"; // _luUNITCOST.Text.ToString() == "" ? "0" : _luUNITCOST.Text.ToString().ToString();
                                _pPOPSelect_INSPECT_COSMETICSEntity.COST         = "0"; // _luCOST.Text.ToString() == "" ? "0" : _luCOST.Text.ToString().ToString();
                                _pPOPSelect_INSPECT_COSMETICSEntity.REFERENCE_ID = _gdMAIN_VIEW.GetFocusedRowCellValue("PRODUCTION_ORDER_ID").ToString();
                                _pPOPSelect_INSPECT_COSMETICSEntity.REMARK       = "";  // _luREMARK.Text.ToString();
                                _pPOPSelect_INSPECT_COSMETICSEntity.USE_YN       = "Y"; // _luUSE_YN.GetValue();

                                isError = new frmPOPMain_PRODUCT_COSMETICSBusiness().ucWorkResultPopup_T01_Info_Save(_pPOPSelect_INSPECT_COSMETICSEntity);
                                if (!isError)
                                {
                                    //CoFAS_DevExpressManager.ShowInformationMessage(_pMSG_SAVE);
                                    CoFAS_DevExpressManager.ShowInformationMessage("실적등록이 되었습니다.");
                                }
                                else
                                {
                                    //CoFAS_DevExpressManager.ShowInformationMessage(_pMSG_SAVE_ERROR);
                                    CoFAS_DevExpressManager.ShowInformationMessage("저장오류 발생");
                                }
                            }

                            if (!isError)
                            {
                                this.DialogResult = DialogResult.OK;
                            }
                        }

                        //작업지시상태 업데이트
                    }
                }



                Close();
                break;

            case "40":
                //아래로
                if (_gdMAIN_VIEW.FocusedRowHandle <= _gdMAIN_VIEW.RowCount - 1)
                {
                    _gdMAIN_VIEW.FocusedRowHandle++;
                    Acitve_Row = _gdMAIN_VIEW.FocusedRowHandle;
                    _gdMAIN_VIEW.SelectRow(Acitve_Row);
                    _luTPART_NAME.Text           = _gdMAIN_VIEW.GetFocusedRowCellValue("PART_NAME").ToString();
                    _luTPART_CODE.Text           = _gdMAIN_VIEW.GetFocusedRowCellValue("PART_CODE").ToString();
                    _luTINSPECT_STATUS.Text      = _gdMAIN_VIEW.GetFocusedRowCellDisplayText("INSPECT_STATUS").ToString();
                    _luTAPPROVAL_YN.Text         = _gdMAIN_VIEW.GetFocusedRowCellValue("INSPECT_APPROVAL").ToString() == "" ? _gdMAIN_VIEW.GetFocusedRowCellValue("INSPECT_APPROVAL").ToString() : _gdMAIN_VIEW.GetFocusedRowCellDisplayText("INSPECT_APPROVAL").ToString();
                    _luTPRODUCTION_ORDER_ID.Text = _gdMAIN_VIEW.GetFocusedRowCellValue("PRODUCTION_ORDER_ID").ToString();
                }
                break;


            case "50":
                //최하단
                if (_gdMAIN_VIEW.FocusedRowHandle <= _gdMAIN_VIEW.RowCount - 1)
                {
                    _gdMAIN_VIEW.FocusedRowHandle = _gdMAIN_VIEW.RowCount - 1;
                    Acitve_Row = _gdMAIN_VIEW.FocusedRowHandle;
                    _gdMAIN_VIEW.SelectRow(Acitve_Row);
                }
                break;

            default: break;
            }
        }
        private void _ucbtRESULT_REG_Click(object sender, EventArgs e)
        {
            if (_luORDER_ID.Text == "")
            {
                CoFAS_DevExpressManager.ShowInformationMessage("작업지시를 먼저 선택해주세요.");
                return;
            }

            //if (_ucbtRECPIE_REG.Visible != false)
            //{
            //    if (CoFAS_DevExpressManager.ShowQuestionMessage("래시피 정보(관리)를 확인하셨습니까?") == DialogResult.No)
            //    {
            //        return;
            //    }
            //}

            if (_pUserEntity.PROCESS_CODE == "ME020001")
            {
                // 실적등록
                frmPopupKeypad frmkey = new frmPopupKeypad();
                frmkey.titleName = _luORDER_ID.Text;

                //실적등록
                string PopupValue = string.Empty;
                if (frmkey.ShowDialog() == DialogResult.OK)
                {
                    PopupValue = frmkey.ReturnValue1;

                    InputResultData_Save(PopupValue);
                }
            }
            else
            {
                DataTable isCheck = new POPProductionOrderCommonBusiness().POPProductionOrderCommon_Recipe_Check(_pORDER_ID);

                if (isCheck != null && isCheck.Rows.Count > 0)
                {
                    // 실적등록
                    frmPopupKeypad frmkey = new frmPopupKeypad();
                    frmkey.titleName = _luORDER_ID.Text;

                    //실적등록
                    string PopupValue = string.Empty;
                    if (frmkey.ShowDialog() == DialogResult.OK)
                    {
                        PopupValue = frmkey.ReturnValue1;

                        InputResultData_Save(PopupValue);
                    }
                }
                else
                {
                    CoFAS_DevExpressManager.ShowInformationMessage("해당 작업지시의 래시피를 등록해주세요.");

                    frmPOPOrderBOM frmPopbom = new frmPOPOrderBOM(_pUserEntity, _pPOPSelect_INSPECT_MIXEntity, _luORDER_ID.Text, _luPART_CODE.Text);
                    //frmPopbom._Workorder_ID = _luORDER_ID.Text;  //작업지시번호
                    //frmPopbom._Part_Code = _luPART_CODE.Text;  // 반죽 번호
                    frmPopbom.ShowDialog();
                }
            }
        }
        private void btnCmd_Click(object pSender, EventArgs pEventArgs)
        {
            SimpleButton pCmd = pSender as SimpleButton;

            string sCls = pCmd.Name.Substring(6, 2);

            switch (sCls)
            {
            case "10":
                // 실적등록
                frmPopupKeypad frmkey = new frmPopupKeypad();
                frmkey.titleName = pCmd.Text;
                if (frmkey.ShowDialog() == DialogResult.OK)
                {
                    string PopupValue = frmkey.ReturnValue1;
                    DisplayMessage(pCmd.Text + " -> " + PopupValue);
                }

                break;

            case "20":
                // 불량처리
                frmPOPBad frmb = new frmPOPBad();
                frmb.titleName = pCmd.Text;
                if (frmb.ShowDialog() == DialogResult.OK)
                {
                    string PopupValue = frmb.ReturnValue1;
                    DisplayMessage(pCmd.Text + " -> " + PopupValue);
                }
                break;

            case "30":
                // 비가동 등록
                frmPOPStop frmStop = new frmPOPStop();
                if (frmStop.ShowDialog() == DialogResult.OK)
                {
                }

                break;

            case "40":
                //작업표준서
                frmPOPDocument frmdoc = new frmPOPDocument();
                if (frmdoc.ShowDialog() == DialogResult.OK)
                {
                }

                break;

            case "50":
                //작업지시
                frmPOPOrder_T01 frmOr = new frmPOPOrder_T01(_pUserEntity);
                if (frmOr.ShowDialog() == DialogResult.OK)
                {
                }

                break;

            default: break;
            }
        }
예제 #9
0
        private void btnCmd_Click(object pSender, EventArgs pEventArgs)
        {
            SimpleButton pCmd = pSender as SimpleButton;

            string sCls = pCmd.Name.Substring(6, 2);



            switch (sCls)
            {
            case "10":
                // 실적등록
                frmPopupKeypad frmkey = new frmPopupKeypad();
                frmkey.titleName = pCmd.Text;
                if (frmkey.ShowDialog() == DialogResult.OK)
                {
                    string PopupValue = frmkey.ReturnValue1;
                    _lbPRODUCTION_OK_QTY.Text = PopupValue;
                    _gdMAIN.Enabled           = true;
                    DisplayMessage(pCmd.Text + " -> " + PopupValue);
                }

                break;

            case "20":
                // 불량처리
                frmPOPBad frmb = new frmPOPBad();
                frmb.titleName = pCmd.Text;
                if (frmb.ShowDialog() == DialogResult.OK)
                {
                    string PopupValue = frmb.ReturnValue1;
                    DisplayMessage(pCmd.Text + " -> " + PopupValue);
                }
                break;

            case "30":
                // 비가동 등록
                frmPOPStop frmStop = new frmPOPStop();
                if (frmStop.ShowDialog() == DialogResult.OK)
                {
                }

                break;

            case "40":
                //작업표준서
                frmPOPDocument frmdoc = new frmPOPDocument();
                if (frmdoc.ShowDialog() == DialogResult.OK)
                {
                }

                break;

            case "50":
                //작업지시
                frmPOPOrder_T03 frmOr = new frmPOPOrder_T03(_pUserEntity);
                frmOr.ShowDialog();

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

                if (frmOr.dtReturn != null && frmOr.dtReturn.Rows.Count > 0)
                {
                    _lbCONTRACT_NUMBER.Text       = frmOr.dtReturn.Rows[0]["CONTRACT_NUMBER"].ToString();
                    _lbORDER_NUMBER.Text          = frmOr.dtReturn.Rows[0]["ORDER_NUMBER"].ToString();
                    _lbVEND_PART_CODE.Text        = frmOr.dtReturn.Rows[0]["VEND_PART_CODE"].ToString();
                    _lbPART_NAME.Text             = frmOr.dtReturn.Rows[0]["PART_NAME"].ToString();
                    _lbPRODUCTION_ORDER_DATE.Text = frmOr.dtReturn.Rows[0]["PRODUCTION_ORDER_DATE"].ToString();
                    _lbPRODUCTION_ORDER_QTY.Text  = frmOr.dtReturn.Rows[0]["PRODUCTION_ORDER_QTY"].ToString();
                    _lbTPRODUCTION_OK_QTY.Text    = frmOr.dtReturn.Rows[0]["PRODUCTION_OK_QTY"].ToString();
                    _lbTPRODUCTION_PASS_QTY.Text  = frmOr.dtReturn.Rows[0]["PRODUCTION_NG_QTY"].ToString();
                    _lbTPRODUCTION_NG_QTY.Text    = frmOr.dtReturn.Rows[0]["PRODUCTION_PASS_QTY"].ToString();

                    sPRODUCTION_ORDER_ID = frmOr.dtReturn.Rows[0]["PRODUCTION_ORDER_ID"].ToString();
                    sREFERENCE_ID        = frmOr.dtReturn.Rows[0]["REFERENCE_ID"].ToString();

                    _lbLOT_NO.Text            = "";
                    _lbPRODUCTION_OK_QTY.Text = "";
                    //_lbPRODUCTION_NG_QTY.Text = "";
                    _lbPRODUCTION_PASS_QTY.Text = "";
                }

                break;

            default: break;
            }
        }