private ReportBase DeformatCardCapturePacket(Packet packet) { CardCaptureReport report = new CardCaptureReport(); report.Address = packet.Address; return(report); }
protected virtual void OnCaptureACardReporting(CardCaptureReport report) { if (this.CaptureACardReporting != null) { this.CaptureACardReporting(this, report); } }
private void ReportSink(CardCaptureReport report) { List <IReportSinker> faultSinkers = new List <IReportSinker>(); foreach (IReportSinker reportSinker in _reportSinkers) { try { reportSinker.CardCaptureSink(report); } catch (Exception ex) { faultSinkers.Add(reportSinker); ExceptionPolicy.HandleException(ex); } } if (faultSinkers.Count > 0) { RemoveFaultSinkers(faultSinkers); } }
protected override void OnCardCaptureReporting(CardCaptureReport report) { EntranceBase entrance = GetEntrance(report.EntranceID); if (entrance == null) { return; } RaiseCardCaptureReporting(report); if (entrance.ProcessingEvent != null && entrance.ProcessingEvent.CardType.IsTempCard) { if (UserSetting.Current.EnableCarPlateRecognize) { CarPlateHandler(entrance, entrance.ProcessingEvent, entrance.ProcessingCard); } //如果启用车牌识别,且出入口车牌对比失败, if (entrance.ProcessingEvent.EventStatus == CardEventStatus.CarPlateFail) { entrance.DisplayMsg(CardInvalidDescripition.GetDescription(Ralid.Park.BusinessModel.Enum.EventInvalidType.INV_CarPlateWrong), false); //(entrance as NetEntrance).ParkDevice.Speak(DeviceVoice.eAUDIO_CPBF); //(entrance as NetEntrance).ParkDevice.Speak(DeviceVoice.eAUDIO_ZZQRQSH); entrance.CardWait(); RaiseCardEventReporting(entrance.ProcessingEvent); return; } else { entrance.CardValid(); if (!entrance.EntranceInfo.CardValidNeedResponse) { PermitCard(entrance, entrance.Operator, entrance.Station); } } } }
private void park_CardCaptureReporting(object sender, CardCaptureReport report) { ReportEnqueue(report); }
private void CardCaptureHandler(CardCaptureReport report) { this.StopCapture(); //收到收卡一张事件后停止再收卡 OnCaptureACardReporting(report); }