Пример #1
0
        /// <summary>
        /// 进场
        /// </summary>
        /// <param name="indoor">是否进内车场</param>
        public void Enter(bool indoor)
        {
            CardReaderManager manager = CardReaderManager.GetInstance(UserSetting.Current.WegenType);
            ReadCardResult    result  = manager.ReadSection(string.Empty, 2, 0, 3, GlobalVariables.ParkingKey, true, true, false);

            if (result.ResultCode == CardOperationResultCode.Success)
            {
                CardInfo card = CardDateResolver.Instance.GetCardInfoFromData(result.CardID, result.ParkingDate);
                if (card != null)
                {
                    Enter(card, indoor);
                }
            }
        }