Example #1
0
        private ReportBase DeformatCommandEchoPakcet(Packet packet)
        {
            CommandEchoReport report = new CommandEchoReport();

            report.Address = packet.Address;
            return(report);
        }
Example #2
0
 protected virtual void OnCommandEchoReporting(CommandEchoReport report)
 {
     if (this.CommandEchoReporting != null)
     {
         this.CommandEchoReporting(this, report);
     }
 }
Example #3
0
        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);
                }
            }
        }
Example #4
0
 private void CommandEchoHandler(CommandEchoReport report)
 {
     OnCommandEchoReporting(report);
 }