Пример #1
0
 /// <summary>
 /// 注销扫描驱动实例对象
 /// </summary>
 /// <returns></returns>
 public void ScanDisPose()
 {
     try
     {
         this.CloseScanDevice();
         bbScanKeyMapping.SetKeyMappingDefault();
         bbScanKeyMapping.KeyMapClose();
         bbScanKeyMapping = null;
         _instance        = null;
     }
     catch (Exception SSExp)
     {
         LogUtility.Write("注销扫描驱动实例对象失败(ScanDisPose) -> " + SSExp.Message);
     }
 }
Пример #2
0
        /// <summary>
        /// 实例化对象,父类被调用
        /// </summary>
        public Bip6000RfidScan()
        {
            try
            {
                bbScanKeyMapping = new BbScanKeyMapping();
                bbScanKeyMapping.KeyMapInit();
                bbScanKeyMapping.SetKeyMappingToScan();

                m_RFIDCommand  = new RFIDCommand();
                m_bOpenFlag    = false;
                m_strPortName  = "COM5:";
                m_byDetectMode = 1;
                m_dwBaudRate   = 9600;
                m_byProtocol   = 1;

                m_abyUID    = new byte[10];
                m_abyBuf    = new byte[m_nBufSize];
                m_nNumBytes = 0;
            }
            catch (Exception SSExp)
            {
                LogUtility.Write("扫描驱动初始化失败(Bip6000RfidScan) -> " + SSExp.Message);
            }
        }
Пример #3
0
        /// <summary>
        /// ʵ�������󣬸��౻����
        /// </summary>
        public Bip6000RfidScan()
        {
            try
            {
                bbScanKeyMapping = new BbScanKeyMapping();
                bbScanKeyMapping.KeyMapInit();
                bbScanKeyMapping.SetKeyMappingToScan();

                m_RFIDCommand = new RFIDCommand();
                m_bOpenFlag = false;
                m_strPortName = "COM5:";
                m_byDetectMode = 1;
                m_dwBaudRate = 9600;
                m_byProtocol = 1;

                m_abyUID = new byte[10];
                m_abyBuf = new byte[m_nBufSize];
                m_nNumBytes = 0;
            }
            catch (Exception SSExp)
            {
                LogUtility.Write("ɨ��������ʼ��ʧ��(Bip6000RfidScan) -> " + SSExp.Message);
            }
        }
Пример #4
0
 public override void ScanDisPose()
 {
     try
     {
         this.CloseScanDevice();
         bbScanKeyMapping.SetKeyMappingDefault();
         bbScanKeyMapping.KeyMapClose();
         bbScanKeyMapping = null;
         base.ScanDisPose();
     }
     catch (Exception SSExp)
     {
         LogUtility.Write("ע��ɨ������ʵ������ʧ��(ScanDisPose) -> " + SSExp.Message);
         bbScanKeyMapping = null;
         base.ScanDisPose();
     }
 }