|
|
|
|
@ -470,12 +470,16 @@ namespace SlnMesnac.WPF.ViewModel.IndexPage
|
|
|
|
|
|
|
|
|
|
if (IsAuto == true)
|
|
|
|
|
{
|
|
|
|
|
if (TempRecordList.Count(x => x.rfidepc == tagInfos[0].EPCstring) != 0)
|
|
|
|
|
string epcascii = Encoding.ASCII.GetString(tagInfos[0].EPC);
|
|
|
|
|
epcascii = epcascii.Replace("\0", "");
|
|
|
|
|
int count = TempRecordList.Count(x => x.rfidascii == epcascii);
|
|
|
|
|
if (count != 0 || tagInfos[0].EPC.Count() == 0)
|
|
|
|
|
{
|
|
|
|
|
Thread.Sleep(1000);
|
|
|
|
|
rfidList.FirstOrDefault(x => x.deviceid == iCombineId).Set_BeginIdentify().GetAwaiter().GetResult();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|