private ReportBase DeformatCommandEchoPakcet(Packet packet) { CommandEchoReport report = new CommandEchoReport(); report.Address = packet.Address; return(report); }
protected virtual void OnCommandEchoReporting(CommandEchoReport report) { if (this.CommandEchoReporting != null) { this.CommandEchoReporting(this, report); } }
protected override void OnCommandEchoReporting(CommandEchoReport report) { EntranceBase entrance = GetEntrance(report.EntranceID); if (entrance == null) { return; } if (entrance.ProcessingEvent != null) { base.OnCommandEchoReporting(report); //离线模式时,通过远程读卡处理读卡事件采用的是在线模式处理,所以处理完成后要把卡片的信息同步到硬件中 //if (AppSettings.CurrentSetting.ParkWorkMode == 0 && entrance.ProcessingCard != null) if (WorkMode == ParkWorkMode.OffLine && entrance.ProcessingCard != null) { SaveCard(entrance.ProcessingCard, ActionType.Upate); } } }
private void CommandEchoHandler(CommandEchoReport report) { OnCommandEchoReporting(report); }