|
|
@@ -519,41 +519,86 @@ namespace CarMeterSystem
|
|
|
//}
|
|
|
|
|
|
// 司机扫码为空,取工控机二维码
|
|
|
- if (string.IsNullOrEmpty(sweepCodeClass2.StrCode))
|
|
|
+ if (PbCache.sportInfo.scanRequireValid == "1")
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(sweepCodeClass.StrCode))
|
|
|
+ if (PbCache.monitor.isValidScan == "0")
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(PbCache.strCode))
|
|
|
+ if (string.IsNullOrEmpty(sweepCodeClass2.StrCode))
|
|
|
{
|
|
|
- codeFlag = false;
|
|
|
- firstCode = "";
|
|
|
- PbCache.strCode = "";
|
|
|
- //l.WriteLog(12, "主线程扫码值为空时清空;sweepCodeClass.StrCode值为" + sweepCodeClass.StrCode + " ;PbCache.strCode值为:" + PbCache.strCode);
|
|
|
- }
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- if (sweepCodeClass.StrCode.Substring(0,3) == "TWB")
|
|
|
- {
|
|
|
- DecodeQRCodeYMT(sweepCodeClass.StrCode);
|
|
|
+ if (string.IsNullOrEmpty(sweepCodeClass.StrCode))
|
|
|
+ {
|
|
|
+ if (string.IsNullOrEmpty(PbCache.strCode))
|
|
|
+ {
|
|
|
+ codeFlag = false;
|
|
|
+ firstCode = "";
|
|
|
+ PbCache.strCode = "";
|
|
|
+ //l.WriteLog(12, "主线程扫码值为空时清空;sweepCodeClass.StrCode值为" + sweepCodeClass.StrCode + " ;PbCache.strCode值为:" + PbCache.strCode);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ if (sweepCodeClass.StrCode.Substring(0, 3) == "TWB")
|
|
|
+ {
|
|
|
+ DecodeQRCodeYMT(sweepCodeClass.StrCode);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ DecodeQRCode(sweepCodeClass.StrCode);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- DecodeQRCode(sweepCodeClass.StrCode);
|
|
|
+ if (sweepCodeClass2.StrCode.Substring(0, 3) == "TWB")
|
|
|
+ {
|
|
|
+ DecodeQRCodeYMT(sweepCodeClass2.StrCode);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ DecodeQRCode(sweepCodeClass2.StrCode);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if (sweepCodeClass2.StrCode.Substring(0, 3) == "TWB")
|
|
|
+ if (string.IsNullOrEmpty(sweepCodeClass2.StrCode))
|
|
|
{
|
|
|
- DecodeQRCodeYMT(sweepCodeClass2.StrCode);
|
|
|
+ if (string.IsNullOrEmpty(sweepCodeClass.StrCode))
|
|
|
+ {
|
|
|
+ if (string.IsNullOrEmpty(PbCache.strCode))
|
|
|
+ {
|
|
|
+ codeFlag = false;
|
|
|
+ firstCode = "";
|
|
|
+ PbCache.strCode = "";
|
|
|
+ //l.WriteLog(12, "主线程扫码值为空时清空;sweepCodeClass.StrCode值为" + sweepCodeClass.StrCode + " ;PbCache.strCode值为:" + PbCache.strCode);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ if (sweepCodeClass.StrCode.Substring(0, 3) == "TWB")
|
|
|
+ {
|
|
|
+ DecodeQRCodeYMT(sweepCodeClass.StrCode);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ DecodeQRCode(sweepCodeClass.StrCode);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- DecodeQRCode(sweepCodeClass2.StrCode);
|
|
|
+ if (sweepCodeClass2.StrCode.Substring(0, 3) == "TWB")
|
|
|
+ {
|
|
|
+ DecodeQRCodeYMT(sweepCodeClass2.StrCode);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ DecodeQRCode(sweepCodeClass2.StrCode);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
@@ -610,6 +655,7 @@ namespace CarMeterSystem
|
|
|
PbCache.collect.parkStatus = e.parkStatus;
|
|
|
PbCache.collect.datetime = e.datetime;
|
|
|
PbCache.collect.licType = e.licType;
|
|
|
+ PbCache.collect.carno = e.carno;
|
|
|
}
|
|
|
|
|
|
if (PbCache.collect != null && PbCache.collect.weightStatus == 0)
|
|
|
@@ -1032,6 +1078,7 @@ namespace CarMeterSystem
|
|
|
meterWorkMonitorEventDataI.validLianda = "1";
|
|
|
meterWorkMonitorEventDataI.validMatClick = "1";
|
|
|
meterWorkMonitorEventDataI.setCar = "";
|
|
|
+ meterWorkMonitorEventDataI.isValidScan = "1";
|
|
|
meterWorkMonitorEventDataI.rfidCar = "";
|
|
|
meterWorkMonitorEventDataI.photoCar = "";
|
|
|
meterWorkMonitorEventDataI.scanCar = "";
|