Пример #1
0
        private string getBrandInfo()
        {
            List <string> listRfid = new List <string>();

            this.VisibleWailt(true);
            string brandInfo = string.Empty;

            try
            {
                listRfid  = rRfid.LoadTagList(port, 115200, out errInfo);
                brandInfo = listRfid[0].ToString();
                Application.DoEvents();
                QuantityDialog quantityForm = new QuantityDialog();
                if (quantityForm.ShowDialog() == DialogResult.OK)
                {
                    if (BillTypes == "1")
                    {
                        brandInfo = quantityForm.Piece + ";" + brandInfo;
                    }
                }
            }
            catch (Exception e)
            {
                throw new Exception("读取件烟码出错了!" + e.Message);
            }

            return(brandInfo);
        }
Пример #2
0
        private string getBrandInfo()
        {
            List<string> listRfid = new List<string>();
            this.VisibleWailt(true);
            string brandInfo = string.Empty;
            try
            {
                listRfid = rRfid.LoadTagList(port, 115200, out errInfo);
                brandInfo = listRfid[0].ToString();
                Application.DoEvents();
                QuantityDialog quantityForm = new QuantityDialog();
                if (quantityForm.ShowDialog() == DialogResult.OK)
                {
                    if (BillTypes == "1")
                    {
                        brandInfo = quantityForm.Piece + ";" + brandInfo;
                    }
                }
            }
            catch (Exception e)
            {
                throw new Exception("��ȡ����������ˣ�" + e.Message);
            }

            return brandInfo;
        }