|
|
@@ -20,6 +20,7 @@ using UHFHelper; |
|
|
|
using XExten.Advance.InternalFramework.Securities.Common; |
|
|
|
using XExten.Advance.LinqFramework; |
|
|
|
using XExten.Advance.StaticFramework; |
|
|
|
using System.Diagnostics; |
|
|
|
|
|
|
|
namespace HKCardOUT.ViewModels |
|
|
|
{ |
|
|
@@ -84,9 +85,9 @@ namespace HKCardOUT.ViewModels |
|
|
|
DataBus.StoreInfo.Devices.ForEach(item => |
|
|
|
{ |
|
|
|
var res = UHF_RS485_Helper.GetInstance().ReadCard(item.Address.AsInt()); |
|
|
|
|
|
|
|
if (res != null) |
|
|
|
{ |
|
|
|
Debug.WriteLine($"卡号地址:{res.Address}----------卡号数据:{res.ResData}"); |
|
|
|
if (!res.ResData.IsMatch(new Regex("0{20}"))) |
|
|
|
ReadFunc?.Invoke(res); |
|
|
|
} |
|
|
@@ -203,6 +204,7 @@ namespace HKCardOUT.ViewModels |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
Debug.WriteLine(ex.ToString()); |
|
|
|
var win = new AdWindow("暂无广告"); |
|
|
|
var rectangle = System.Windows.Forms.Screen.AllScreens[0].WorkingArea; |
|
|
|
win.Height = rectangle.Height; |
|
|
|