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); }
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; }