public void Reader_OnTagReported(Xindeco.Device.Model.TagInfo taginfo) { if (!isInventory) { return; } if (taginfo == null || string.IsNullOrEmpty(taginfo.Epc) || ignore(taginfo.Epc)) { return; } if (!epcList.Contains(taginfo.Epc)) { lastReadTime = DateTime.Now; epcList.Add(taginfo.Epc); /* * TagDetailInfo tag = GetTagDetailInfoByEpc(taginfo.Epc); * if (tag != null) //合法EPC * { * tagDetailList.Add(tag); * if (!tag.IsAddEpc) //主条码 * mainEpcNumber++; * else * addEpcNumber++; * } * else * { * //累加非法EPC数量 * errorEpcNumber++; * } * UpdateView(); */ } }
private void button3_start_Click(object sender, EventArgs e) { button3_start.Enabled = false; button2_stop.Enabled = true; openMachine(); #if DEBUG StartInventory(); List <Xindeco.Device.Model.TagInfo> ti = new List <Xindeco.Device.Model.TagInfo>(); Xindeco.Device.Model.TagInfo t = null; for (int i = 0; i < 21; i++) { t = new Xindeco.Device.Model.TagInfo(); t.Epc = "5000001000000B000000199" + i.ToString(); ti.Add(t); } t = new Xindeco.Device.Model.TagInfo(); t.Epc = "5000000FE0000B0000001199"; ti.Add(t); t = new Xindeco.Device.Model.TagInfo(); t.Epc = "5000000FD0000B0000001199"; ti.Add(t); foreach (var v in ti) { Reader_OnTagReported(v); } StopInventory(); #endif }
private void dmButtonStart_Click(object sender, EventArgs e) { Start(); openMachine(); if (SysConfig.IsTest) { boxNoList.Enqueue("1234567"); StartInventory(); List <Xindeco.Device.Model.TagInfo> ti = new List <Xindeco.Device.Model.TagInfo>(); Xindeco.Device.Model.TagInfo t = null; for (int i = 0; i < 5; i++) { //FKCAJ38001A01001 t = new Xindeco.Device.Model.TagInfo(); t.Epc = "50002A232508C00000009" + i.ToString(); ti.Add(t); } for (int i = 0; i < 6; i++) { //FKCAJ38001A01002 t = new Xindeco.Device.Model.TagInfo(); t.Epc = "50002A233508C00000009" + i.ToString(); ti.Add(t); } for (int i = 0; i < 8; i++) { //HTXAD3A011Y11004 t = new Xindeco.Device.Model.TagInfo(); t.Epc = "500009D77500010000001" + i.ToString(); ti.Add(t); } for (int i = 0; i < 8; i++) { //HTXAD3A011Y11004 t = new Xindeco.Device.Model.TagInfo(); t.Epc = "500009D77503150000001" + i.ToString(); ti.Add(t); } foreach (var v in ti) { Reader_OnTagReported(v); } StopInventory(); } }
private void button3_start_Click(object sender, EventArgs e) { button3_start.Enabled = false; button2_stop.Enabled = true; openMachine(); if (SysConfig.IsTest) { StartInventory(); List <Xindeco.Device.Model.TagInfo> ti = new List <Xindeco.Device.Model.TagInfo>(); Xindeco.Device.Model.TagInfo t = null; for (int i = 0; i < 3; i++) { t = new Xindeco.Device.Model.TagInfo(); t.Epc = "50002A232508C00000009116" + i.ToString(); ti.Add(t); } for (int i = 0; i < 4; i++) { t = new Xindeco.Device.Model.TagInfo(); t.Epc = "50002A233508C00000009116" + i.ToString(); ti.Add(t); } for (int i = 0; i < 0; i++) { t = new Xindeco.Device.Model.TagInfo(); t.Epc = "500009D775000100000011" + i.ToString(); ti.Add(t); } for (int i = 0; i < 0; i++) { t = new Xindeco.Device.Model.TagInfo(); t.Epc = "500009D775031500000011" + i.ToString(); ti.Add(t); } foreach (var v in ti) { Reader_OnTagReported(v); } StopInventory(); } }
private void Start() { #if DEBUG StartInventory(); List <Xindeco.Device.Model.TagInfo> ti = new List <Xindeco.Device.Model.TagInfo>(); Xindeco.Device.Model.TagInfo t = new Xindeco.Device.Model.TagInfo(); t.Epc = "50000E7C2500010000001"; ti.Add(t); t = new Xindeco.Device.Model.TagInfo(); t.Epc = "500011035500010000002"; ti.Add(t); t = new Xindeco.Device.Model.TagInfo(); t.Epc = "500011036500010000001"; ti.Add(t); t = new Xindeco.Device.Model.TagInfo(); t.Epc = "500011036500010000002"; ti.Add(t); t = new Xindeco.Device.Model.TagInfo(); t.Epc = "500011036500010000003"; ti.Add(t); t = new Xindeco.Device.Model.TagInfo(); t.Epc = "500011037500010000001"; ti.Add(t); t = new Xindeco.Device.Model.TagInfo(); t.Epc = "500011038500010000001"; ti.Add(t); foreach (var v in ti) { Reader_OnTagReported(v); } StopInventory(); #endif btnStart.Enabled = false; btnPause.Enabled = true; openMachine(); }
private void button3_start_Click(object sender, EventArgs e) { button3_start.Enabled = false; button2_stop.Enabled = true; openMachine(); #if DEBUG StartInventory(); List <Xindeco.Device.Model.TagInfo> ti = new List <Xindeco.Device.Model.TagInfo>(); Xindeco.Device.Model.TagInfo t = new Xindeco.Device.Model.TagInfo(); t.Epc = "50002A8D8508C00000001"; ti.Add(t); t = new Xindeco.Device.Model.TagInfo(); t.Epc = "50002A8D8508C00000002"; ti.Add(t); t = new Xindeco.Device.Model.TagInfo(); t.Epc = "50002A8D9508C00000001"; ti.Add(t); t = new Xindeco.Device.Model.TagInfo(); t.Epc = "50002A8D9508C00000002"; ti.Add(t); t = new Xindeco.Device.Model.TagInfo(); t.Epc = "50002A8D9508C00000003"; ti.Add(t); t = new Xindeco.Device.Model.TagInfo(); t.Epc = "50002A8D9508C00000004"; ti.Add(t); t = new Xindeco.Device.Model.TagInfo(); t.Epc = "50002A8D9508C00000005"; ti.Add(t); foreach (var v in ti) { Reader_OnTagReported(v); } StopInventory(); #endif }
public void Reader_OnTagReported(Xindeco.Device.Model.TagInfo taginfo) { if (!isInventory) { return; } if (taginfo == null || string.IsNullOrEmpty(taginfo.Epc)) { return; } if (!epcList.Contains(taginfo.Epc)) { lastReadTime = DateTime.Now; epcList.Add(taginfo.Epc); UpdateView(); } }