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

            HandleBarCode(matchBarCode);
        }
Exemplo n.º 2
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;
            }
        }
Exemplo n.º 4
0
        private void BarCodeHolder_BarCodeEvent(BarCodeHook.BarCodes barCode)

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

            if (matchBarCode.StartsWith("BCB"))
            {
                //userNameTxt.Focus();
                GetUserByBarCode(matchBarCode);
                InitalizeUserInfo();
            }
        }
Exemplo n.º 5
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);
                }
            }
        }
Exemplo n.º 7
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 OnBarCodeEvent(BarCodeHook.BarCodes barCode)
        {
            string matchBarCode = BarCodeHelper.GetMatchBarCode(barCode.BarCode);

            resultLbl.Text = HandleBarCode(matchBarCode);
        }