/// <summary>
        /// 扫码枪相应事件
        /// </summary>
        /// <param name="barCode"></param>
        void _sendbarCodeHolder_BarCodeEvent(BarCodeHook.BarCodes barCode)
        {
            _canKeyDown = false;
            string matchBarCode = BarCodeHelper.GetMatchBarCode(barCode.BarCode);

            HandleBarCode(matchBarCode);
        }
Example #2
0
        void OnWorkSpaceScaned(BarCodeHook.BarCodes barCode)
        {
            string matchBarCode = BarCodeHelper.GetMatchBarCode(barCode.BarCode);

            setBarCodeTxt.Text = string.Empty;
            if (matchBarCode.StartsWith("BCB"))
            {
                UserBase userInfo = UserBaseHelper.GetUserByBarCode(matchBarCode);
                searchdata(userInfo);
            }

            else if (matchBarCode.StartsWith("BCC"))
            {
                //定位到指定包
                dgv_01.ClearSelection();
                setBarCodeTxt.Text = matchBarCode;
                foreach (DataGridViewRow item in dgv_01.Rows)
                {
                    if (item.Cells["set_code"] != null &&
                        item.Cells["set_code"].Value.ToString() == matchBarCode)
                    {
                        item.Selected = true;
                        //rexxie需要考虑是否直接弹出手动处理
                        //tsm_hand_Click(null, null);
                        break;
                    }
                }
            }
        }
Example #3
0
        /// <summary>
        /// 扫码响应事件
        /// </summary>
        /// <param name="barCode"></param>
        void _barCodeHook_BarCodeEvent(BarCodeHook.BarCodes barCode)
        {
            string matchBarCode = BarCodeHelper.GetMatchBarCode(barCode.BarCode);

            if (matchBarCode.Length == 13 && matchBarCode.Substring(0, 2) == "BC")
            {
                HandleScanBarCode(matchBarCode);
            }
        }
        private void OnScanBarCodeEvent(BarCodeHook.BarCodes barCode)
        {
            string matchBarCode = BarCodeHelper.GetMatchBarCode(barCode.BarCode);

            if (matchBarCode.Length == 13)
            {
                bindingCodeTxt.Text = matchBarCode;
            }
        }
Example #5
0
        private void BarCodeHolder_BarCodeEvent(BarCodeHook.BarCodes barCode)

        {
            string matchBarCode = BarCodeHelper.GetMatchBarCode(barCode.BarCode);

            if (matchBarCode.StartsWith("BCB"))
            {
                //userNameTxt.Focus();
                GetUserByBarCode(matchBarCode);
                InitalizeUserInfo();
            }
        }
Example #6
0
        /// <summary>
        /// 扫码枪相应事件
        /// </summary>
        /// <param name="barCode"></param>
        void _barCodeHolder_BarCodeEvent(BarCodeHook.BarCodes barCode)
        {
            _canKeyDown = false;
            string matchBarCode = BarCodeHelper.GetMatchBarCode(barCode.BarCode).Trim();

            if (!string.IsNullOrEmpty(matchBarCode))
            {
                string result = HandleBarCode(matchBarCode);
                resultLbl.Text    = result;
                resultLbl.Visible = !string.IsNullOrEmpty(resultLbl.Text);
            }
        }
        private void OnBarCodeEvent(BarCodeHook.BarCodes barCode)
        {
            string matchBarCode = BarCodeHelper.GetMatchBarCode(barCode.BarCode);

            if (matchBarCode.Length == 13 && matchBarCode.Substring(0, 2) == "BC")
            {
                if (specialSetPacking != null)
                {
                    specialSetPacking.HandleScanBarCode(matchBarCode);
                }
            }
        }
Example #8
0
        private void OnBarCodeEvent(BarCodeHook.BarCodes barCode)
        {
            string matchBarCode = BarCodeHelper.GetMatchBarCode(barCode.BarCode);

            if (matchBarCode.Length == 13 && matchBarCode.Substring(0, 2) == "BC")
            {
                string str_value = matchBarCode.Substring(12, 1);
                for (int i = 0; i < mcb_result.Items.Count; i++)
                {
                    if (mcb_result.Items[i].ToString().Substring(0, 1) == str_value)
                    {
                        mcb_result.SelectedIndex = i;
                        break;
                    }
                }
                mett_03_Click(null, null);
            }
        }
        void OnWorkSpaceScaned(BarCodeHook.BarCodes barCode)
        {
            string matchBarCode = BarCodeHelper.GetMatchBarCode(barCode.BarCode);

            if (matchBarCode.StartsWith("BCB"))
            {
                searchdata(matchBarCode);
            }
            else if (matchBarCode.StartsWith("BCC"))
            {
                //定位到指定包
                foreach (DataGridViewRow item in dgv_01.Rows)
                {
                    if (item.Cells["set_code"] != null &&
                        item.Cells["set_code"].Value.ToString() == matchBarCode)
                    {
                        item.Selected = true;
                        //rexxie需要考虑是否直接弹出手动处理
                        tsm_hand_Click(null, null);
                        break;
                    }
                }
            }
        }
        void OnBarCodeEvent(BarCodeHook.BarCodes barCode)
        {
            string matchBarCode = BarCodeHelper.GetMatchBarCode(barCode.BarCode);

            resultLbl.Text = HandleBarCode(matchBarCode);
        }