/// <summary>
        /// 初始化设备
        /// </summary>
        /// <returns></returns>
        public int InitOnlineEntityCardScan()
        {
            int intErrCode = 0;

            string strLogType = "InitOnlineEntityCardScan";

            LogHelper.AddBusLog(strLogType + "  " + "Port:" + ComPort);

            intErrCode = Initialize();

            string strStatus = string.Empty;

            if (intErrCode != 0)
            {
                strStatus = "01";
            }
            else
            {
                strStatus = "02";
            }
            m_RFIDDeviceStatus = strStatus;

            LogHelper.AddBusLog_Code(strLogType, intErrCode.ToString(), strStatus);

            return(intErrCode);
        }
        /// <summary>
        /// 初始化条形码扫描设备
        /// </summary>
        /// <returns></returns>
        public int InitBarCodeScan()
        {
            int intErrCode = 0;

            string strLogType = "InitBarCodeScan";

            LogHelper.AddBusLog(strLogType + "  " + "Port:" + ComPort);

            intErrCode = Initialize();
            if (intErrCode == 0)
            {
                // 初始化成功,设置条形码设备参数
                intErrCode = m_ScanOper.SetScanPara();
            }

            string strStatus = string.Empty;

            if (intErrCode != 0)
            {
                strStatus = "01";
            }
            else
            {
                strStatus = "02";
            }
            m_BarCodeDeviceStatus = strStatus;

            LogHelper.AddBusLog_Code(strLogType, intErrCode.ToString(), strStatus);

            return(intErrCode);
        }
        /// <summary>
        /// 停止扫描
        /// </summary>
        /// <returns></returns>
        public int StopScan()
        {
            string strLogType = "StopBarCodeScan";

            int intErrCode = m_ScanOper.StopScan();

            LogHelper.AddBusLog_Code(strLogType, intErrCode.ToString(), "");

            return(intErrCode);
        }
        /// <summary>
        /// 检测扫描设备状态
        /// </summary>
        /// <returns></returns>
        public int CheckDeviceStatus()
        {
            string strLogType = "QueryBarCodeScanStatus";

            // 如果开启条形码扫描终端
            int intErrCode = m_ScanOper.CheckDeviceStatus();

            if (intErrCode == 0)
            {
                m_BarCodeDeviceStatus = "02";
            }
            else
            {
                m_BarCodeDeviceStatus = "01";
            }

            LogHelper.AddBusLog_Code(strLogType, intErrCode.ToString(), m_BarCodeDeviceStatus);

            return(intErrCode);
        }