Esempio n. 1
0
        private ReportBase DeformatCommandEchoPakcet(Packet packet)
        {
            CommandEchoReport report = new CommandEchoReport();

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