|
|
@@ -541,5 +541,16 @@ namespace DeviceCenter
|
|
|
string time = $"{struCFG.struTime.dwYear:D4}-{struCFG.struTime.dwMonth:D2}-{struCFG.struTime.dwDay:D4} {struCFG.struTime.dwHour:D2}:{struCFG.struTime.dwMinute:D2}:{struCFG.struTime.dwSecond:D2}";
|
|
|
log.Info($"receive acs event employNo:{employNo} cardNo:{cardNo} time:{time}");
|
|
|
}
|
|
|
+
|
|
|
+ private void Get_Event_Click(object sender, RoutedEventArgs e)
|
|
|
+ {
|
|
|
+ foreach (Device device in devices)
|
|
|
+ {
|
|
|
+ if (device.status == DeviceStatus.CONNECTED && device.type == DeviceType.ACS)
|
|
|
+ {
|
|
|
+ getEvent(((AcsDevice)device).userId);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|