|
|
@ -254,11 +254,11 @@ public class RfidReadWriteTool
|
|
|
|
|
|
|
|
|
|
|
|
strTemps = strResult.Split(';');
|
|
|
|
strTemps = strResult.Split(';');
|
|
|
|
|
|
|
|
|
|
|
|
if (strTemps.Length >= 2)
|
|
|
|
if (strTemps.Length >= 4)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (strTemps[1] != "")
|
|
|
|
if (strTemps[3] != "")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
byte[] bytesVelNo = ToByteByHexStr(strTemps[1]);
|
|
|
|
byte[] bytesVelNo = ToByteByHexStr(strTemps[3]);
|
|
|
|
Encoding gbEcoding = Encoding.GetEncoding("gb2312");
|
|
|
|
Encoding gbEcoding = Encoding.GetEncoding("gb2312");
|
|
|
|
strVelNo = gbEcoding.GetString(bytesVelNo);
|
|
|
|
strVelNo = gbEcoding.GetString(bytesVelNo);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -274,7 +274,7 @@ public class RfidReadWriteTool
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Result = 1,
|
|
|
|
Result = 1,
|
|
|
|
VelVin = strTemps[0],
|
|
|
|
VelVin = strTemps[0],
|
|
|
|
VelNo = strVelNo,
|
|
|
|
VelNo = strVelNo.Replace(";",""),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|