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();
                        }
                        //작업지시상태 업데이트
                    }
                }
            }
        }
        private void _ucbtRESULT_REG_Click(object sender, EventArgs e)
        {
            // 실적등록
            _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();
            }
        }