public ActionResult ReadingRoomUsageInfo()
        {
            SeatManage.Bll.T_SM_Reader readerbll = new SeatManage.Bll.T_SM_Reader();
            List <string> readertypeList         = readerbll.GetReaderType();

            ViewData["readertypeList"] = readertypeList;

            List <SeatManage.ClassModel.LibraryInfo> libList = SeatManage.Bll.T_SM_Library.GetLibraryInfoList(null, null, null);

            ViewData["libList"] = libList;
            return(View());
        }
Exemplo n.º 2
0
        private void BindLibrary()
        {
            List <SeatManage.ClassModel.LibraryInfo> libList = SeatManage.Bll.T_SM_Library.GetLibraryInfoList(null, null, null);

            if (libList != null)
            {
                ddlLibrary.DataTextField  = "Name";
                ddlLibrary.DataValueField = "No";
                ddlLibrary.DataSource     = libList;
                ddlLibrary.DataBind();
            }
            SeatManage.Bll.T_SM_Reader readerbll = new SeatManage.Bll.T_SM_Reader();
            List <string> readertype             = readerbll.GetReaderType();

            if (readertype != null)
            {
                foreach (string type in readertype)
                {
                    ddlReaderType.Items.Add(new ListItem(type, type));
                }
            }
            ddlReaderType.Items.Insert(0, new ListItem("全部类型", ""));
        }
Exemplo n.º 3
0
        public string StuState(string StuNo)
        {
            if (!Verifylicensing())
            {
                return("非法操作,此接口未进行授权!");
            }
            string result = "";

            SeatManage.Bll.T_SM_Reader       reader      = new SeatManage.Bll.T_SM_Reader();
            SeatManage.ClassModel.ReaderInfo readerModel = new SeatManage.ClassModel.ReaderInfo();
            readerModel = reader.GetReader(StuNo);
            string state           = "";
            string seatNo          = "";
            string readingRoomName = "";

            if (!string.IsNullOrEmpty(readerModel.CardNo))
            {
                if (readerModel.EnterOutLog != null)
                {
                    switch (readerModel.EnterOutLog.EnterOutState)
                    {
                    case SeatManage.EnumType.EnterOutLogType.ComeBack:
                    case SeatManage.EnumType.EnterOutLogType.ContinuedTime:
                    case SeatManage.EnumType.EnterOutLogType.ReselectSeat:
                    case SeatManage.EnumType.EnterOutLogType.SelectSeat:
                    case SeatManage.EnumType.EnterOutLogType.WaitingCancel:
                    case SeatManage.EnumType.EnterOutLogType.WaitingSuccess:
                    case SeatManage.EnumType.EnterOutLogType.BookingConfirmation:
                        state  = "在座";
                        seatNo = readerModel.EnterOutLog.SeatNo;
                        string rrId = readerModel.EnterOutLog.ReadingRoomNo;
                        readingRoomName = readerModel.EnterOutLog.ReadingRoomName;
                        break;

                    case SeatManage.EnumType.EnterOutLogType.Leave:
                    case SeatManage.EnumType.EnterOutLogType.None:
                    case SeatManage.EnumType.EnterOutLogType.BookingCancel:
                        state = "无座";
                        break;

                    case SeatManage.EnumType.EnterOutLogType.ShortLeave:
                        state           = "暂离";
                        seatNo          = readerModel.EnterOutLog.SeatNo;
                        readingRoomName = readerModel.EnterOutLog.ReadingRoomName;
                        break;

                    case SeatManage.EnumType.EnterOutLogType.Waiting:
                        state           = "等待座位";
                        seatNo          = readerModel.EnterOutLog.SeatNo;
                        readingRoomName = readerModel.EnterOutLog.ReadingRoomName;
                        break;

                    case SeatManage.EnumType.EnterOutLogType.BespeakWaiting:
                        state           = "存在未确认预约座位";
                        seatNo          = readerModel.EnterOutLog.SeatNo;
                        readingRoomName = readerModel.EnterOutLog.ReadingRoomName;
                        break;
                    }
                }
                result = string.Format("<ReaderInfo><Reader Name='{0}' CardNo='{1}' RoomName='{2}'  SeatNo='{3}' Status='{4}'></Reader></ReaderInfo>", readerModel.Name, readerModel.CardNo, readingRoomName, seatNo, state);
            }
            else
            {
                result = "<ReaderInfo><Reader Name='' CardNo='' RoomName=''  SeatNo='' Status=''></Reader></ReaderInfo>";
            }
            return(result);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 数据绑定
        /// </summary>
        private void DataBind()
        {
            SeatManage.ClassModel.ReadingRoomInfo room = SeatManage.Bll.T_SM_ReadingRoom.GetSingleRoomInfo(Request.QueryString["id"]);
            if (room == null)
            {
                room = new SeatManage.ClassModel.ReadingRoomInfo();
            }
            SeatManage.ClassModel.ReadingRoomSetting roomSet = room.Setting;
            if (roomSet == null)
            {
                roomSet = new SeatManage.ClassModel.ReadingRoomSetting();
            }
            //选座模式设置
            SeatSelectDefaultMode.SelectedValue = ((int)roomSet.SeatChooseMethod.DefaultChooseMethod).ToString();
            SeatSelectAdMode.Checked            = roomSet.SeatChooseMethod.UsedAdvancedSet;
            //SelectSeatPosTimes.Text = roomSet.PosTimes.Times.ToString();
            SelectSeatPosCount.Text = roomSet.PosTimes.Times.ToString();
            SelectSeatPosTimes.Text = roomSet.PosTimes.Minutes.ToString();
            SeatSelectPos.Checked   = roomSet.PosTimes.IsUsed;
            if (SeatSelectAdMode.Checked)
            {
                SeatSelectAdModeTable.Style["display"] = "block";
            }
            else
            {
                SeatSelectAdModeTable.Style["display"] = "none";
            }
            //高级设置
            foreach (KeyValuePair <DayOfWeek, SeatChooseMethodPlan> day in roomSet.SeatChooseMethod.AdvancedSelectSeatMode)
            {
                string   dayNum   = ((int)day.Value.Day).ToString();
                CheckBox DayCheck = FindControl("PanelSetting").FindControl("FormReadingRoomSet").FindControl("SeatSelectAdModeDay" + dayNum) as CheckBox;
                DayCheck.Checked = day.Value.Used;
                for (int i = 0; i < day.Value.PlanOption.Count; i++)
                {
                    string[]        begintime  = day.Value.PlanOption[i].UsedTime.BeginTime.Split(':');
                    string[]        endtime    = day.Value.PlanOption[i].UsedTime.EndTime.Split(':');
                    TextBox         begintimeH = FindControl("PanelSetting").FindControl("FormReadingRoomSet").FindControl("SeatSelectAdModeDay" + dayNum + "_Time" + (i + 1) + "_StartH") as TextBox;
                    TextBox         begintimeM = FindControl("PanelSetting").FindControl("FormReadingRoomSet").FindControl("SeatSelectAdModeDay" + dayNum + "_Time" + (i + 1) + "_StartM") as TextBox;
                    TextBox         endtimeH   = FindControl("PanelSetting").FindControl("FormReadingRoomSet").FindControl("SeatSelectAdModeDay" + dayNum + "_Time" + (i + 1) + "_EndH") as TextBox;
                    TextBox         endtimeM   = FindControl("PanelSetting").FindControl("FormReadingRoomSet").FindControl("SeatSelectAdModeDay" + dayNum + "_Time" + (i + 1) + "_EndM") as TextBox;
                    RadioButtonList selectmode = FindControl("PanelSetting").FindControl("FormReadingRoomSet").FindControl("SeatSelectAdModeDay" + dayNum + "_Time" + (i + 1) + "_SelectMode") as RadioButtonList;
                    begintimeH.Text          = begintime[0];
                    begintimeM.Text          = begintime[1];
                    endtimeH.Text            = endtime[0];
                    endtimeM.Text            = endtime[1];
                    selectmode.SelectedValue = ((int)day.Value.PlanOption[i].ChooseMethod).ToString();
                }
            }
            //暂离设置
            ShortLeaveDufaultTime.Text = roomSet.SeatHoldTime.DefaultHoldTimeLength.ToString();
            ShortLeaveAdMode.Checked   = roomSet.SeatHoldTime.UsedAdvancedSet;
            if (ShortLeaveAdMode.Checked)
            {
                ShortLeaveAdModeTable.Style["display"] = "block";
            }
            else
            {
                ShortLeaveAdModeTable.Style["display"] = "none";
            }
            //高级设置
            for (int i = 0; i < roomSet.SeatHoldTime.AdvancedSeatHoldTime.Count; i++)
            {
                string[] begintime  = roomSet.SeatHoldTime.AdvancedSeatHoldTime[i].UsedTime.BeginTime.Split(':');
                string[] endtime    = roomSet.SeatHoldTime.AdvancedSeatHoldTime[i].UsedTime.EndTime.Split(':');
                TextBox  begintimeH = FindControl("PanelSetting").FindControl("FormShortLeave").FindControl("ShortLeaveAdMode_Time" + (i + 1) + "_StartH") as TextBox;
                TextBox  begintimeM = FindControl("PanelSetting").FindControl("FormShortLeave").FindControl("ShortLeaveAdMode_Time" + (i + 1) + "_StartM") as TextBox;
                TextBox  endtimeH   = FindControl("PanelSetting").FindControl("FormShortLeave").FindControl("ShortLeaveAdMode_Time" + (i + 1) + "_EndH") as TextBox;
                TextBox  endtimeM   = FindControl("PanelSetting").FindControl("FormShortLeave").FindControl("ShortLeaveAdMode_Time" + (i + 1) + "_EndM") as TextBox;
                TextBox  leavetime  = FindControl("PanelSetting").FindControl("FormShortLeave").FindControl("ShortLeaveAdMode_Time" + (i + 1) + "_LeaveTime") as TextBox;
                CheckBox used       = FindControl("PanelSetting").FindControl("FormShortLeave").FindControl("ShortLeaveAdMode_Time" + (i + 1)) as CheckBox;
                begintimeH.Text = begintime[0];
                begintimeM.Text = begintime[1];
                endtimeH.Text   = endtime[0];
                endtimeM.Text   = endtime[1];
                leavetime.Text  = roomSet.SeatHoldTime.AdvancedSeatHoldTime[i].HoldTimeLength.ToString();
                used.Checked    = roomSet.SeatHoldTime.AdvancedSeatHoldTime[i].Used;
            }
            //开闭馆计划设置
            string[] opentime  = roomSet.RoomOpenSet.DefaultOpenTime.BeginTime.Split(':');
            string[] closetime = roomSet.RoomOpenSet.DefaultOpenTime.EndTime.Split(':');
            ReadingRoomDufaultOpenTimeH.Text  = opentime[0];
            ReadingRoomDufaultOpenTimeM.Text  = opentime[1];
            ReadingRoomBeforeOpenTime.Text    = roomSet.RoomOpenSet.OpenBeforeTimeLength.ToString();
            ReadingRoomDufaultCloseTimeH.Text = closetime[0];
            ReadingRoomDufaultCloseTimeM.Text = closetime[1];
            ReadingRoomBeforeCloseTime.Text   = roomSet.RoomOpenSet.CloseBeforeTimeLength.ToString();
            ReadingRoomOpen24H.Checked        = roomSet.RoomOpenSet.UninterruptibleModel;
            //高级设置
            ReadingRoomOpenCloseAdMode.Checked = roomSet.RoomOpenSet.UsedAdvancedSet;
            if (ReadingRoomOpenCloseAdMode.Checked)
            {
                ReadingRoomOpenCloseAdModeTable.Style["display"] = "block";
            }
            else
            {
                ReadingRoomOpenCloseAdModeTable.Style["display"] = "none";
            }
            foreach (KeyValuePair <DayOfWeek, RoomOpenPlanSet> day in roomSet.RoomOpenSet.RoomOpenPlan)
            {
                string   dayNum   = ((int)day.Value.Day).ToString();
                CheckBox DayCheck = FindControl("PanelSetting").FindControl("FormReadingRoomOC").FindControl("ReadingRoomAdOpenTime_Day" + dayNum) as CheckBox;
                DayCheck.Checked = day.Value.Used;
                for (int i = 0; i < day.Value.OpenTime.Count; i++)
                {
                    string[] begintime  = day.Value.OpenTime[i].BeginTime.Split(':');
                    string[] endtime    = day.Value.OpenTime[i].EndTime.Split(':');
                    TextBox  begintimeH = FindControl("PanelSetting").FindControl("FormReadingRoomOC").FindControl("ReadingRoomAdOpenTime_Day" + dayNum + "_Time" + (i + 1) + "_OpenH") as TextBox;
                    TextBox  begintimeM = FindControl("PanelSetting").FindControl("FormReadingRoomOC").FindControl("ReadingRoomAdOpenTime_Day" + dayNum + "_Time" + (i + 1) + "_OpenM") as TextBox;
                    TextBox  endtimeH   = FindControl("PanelSetting").FindControl("FormReadingRoomOC").FindControl("ReadingRoomAdOpenTime_Day" + dayNum + "_Time" + (i + 1) + "_CloseH") as TextBox;
                    TextBox  endtimeM   = FindControl("PanelSetting").FindControl("FormReadingRoomOC").FindControl("ReadingRoomAdOpenTime_Day" + dayNum + "_Time" + (i + 1) + "_CloseM") as TextBox;
                    begintimeH.Text = begintime[0];
                    begintimeM.Text = begintime[1];
                    endtimeH.Text   = endtime[0];
                    endtimeM.Text   = endtime[1];
                }
            }
            ShortLeaveByAdmin.Checked        = roomSet.AdminShortLeave.IsUsed;
            ShortLeaveByAdmin_LeaveTime.Text = roomSet.AdminShortLeave.HoldTimeLength.ToString();
            //在座时长设置
            SeatTime.Checked                           = roomSet.SeatUsedTimeLimit.Used;
            SeatTime_Mode.SelectedValue                = roomSet.SeatUsedTimeLimit.Mode;
            SeatTime_SeatTime.Text                     = roomSet.SeatUsedTimeLimit.UsedTimeLength.ToString();
            SeatTime_OverTime_Mode.SelectedValue       = ((int)roomSet.SeatUsedTimeLimit.OverTimeHandle).ToString();
            SeatTime_ContinueTime.Checked              = roomSet.SeatUsedTimeLimit.IsCanContinuedTime;
            SeatTime_ContinueTime_Time.Text            = roomSet.SeatUsedTimeLimit.DelayTimeLength.ToString();
            SeatTime_ContinueTime_ContinueCount.Text   = roomSet.SeatUsedTimeLimit.ContinuedTimes.ToString();
            SeatTime_ContinueTime_BeforeTime.Text      = roomSet.SeatUsedTimeLimit.CanDelayTime.ToString();
            SeatTime_ContinueTime_WithBookSpan.Checked = roomSet.SeatUsedTimeLimit.CanNotContinuedWithBookNetFixed;
            for (int i = 0; i < roomSet.SeatUsedTimeLimit.FixedTimes.Count; i++)
            {
                TextBox timeH = FindControl("PanelSetting").FindControl("SeatTimeSetting").FindControl("SeatTime_TimeH_" + i) as TextBox;
                timeH.Text = roomSet.SeatUsedTimeLimit.FixedTimes[i].ToShortTimeString().Split(':')[0];
                TextBox timeM = FindControl("PanelSetting").FindControl("SeatTimeSetting").FindControl("SeatTime_TimeM_" + i) as TextBox;
                timeM.Text = roomSet.SeatUsedTimeLimit.FixedTimes[i].ToShortTimeString().Split(':')[1];
            }

            //预约功能设置
            SeatBook.Checked            = roomSet.SeatBespeak.Used;
            cbMuiteSpan.Checked         = roomSet.SeatBespeak.CanBookMultiSpan;
            ckbDelayTime.Checked        = roomSet.SeatBespeak.AllowDelayTime;
            ckbLeave.Checked            = roomSet.SeatBespeak.AllowLeave;
            ckbShortLeave.Checked       = roomSet.SeatBespeak.AllowShortLeave;
            SeatBook_BeforeBookDay.Text = roomSet.SeatBespeak.BespeakBeforeDays.ToString();
            string[] beginbooktime = roomSet.SeatBespeak.CanBespeatTimeSpace.BeginTime.Split(':');
            string[] endbooktime   = roomSet.SeatBespeak.CanBespeatTimeSpace.EndTime.Split(':');
            SeatBook_BookTime_StartH.Text  = beginbooktime[0];
            SeatBook_BookTime_StartM.Text  = beginbooktime[1];
            SeatBook_BookTime_EndH.Text    = endbooktime[0];
            SeatBook_BookTime_EndM.Text    = endbooktime[1];
            SeatBook_SubmitBeforeTime.Text = roomSet.SeatBespeak.ConfirmTime.BeginTime;
            SeatBook_SubmitLateTime.Text   = roomSet.SeatBespeak.ConfirmTime.EndTime;

            if (roomSet.SeatBespeak.BespeakArea.BespeakType == BespeakAreaType.Percentage)
            {
                SeatBook_SeatBookRadioPercent.Checked = true;
            }
            else if (roomSet.SeatBespeak.BespeakArea.BespeakType == BespeakAreaType.AppointSeat)
            {
                SeatBook_SeatBookRadioSetted.Checked = true;
            }
            SeatBook_SeatBookRadioPercent_Percent.Text = ((roomSet.SeatBespeak.BespeakArea.Scale) * 100).ToString();
            foreach (SeatManage.ClassModel.TimeSpace cannotbookdate in roomSet.SeatBespeak.NoBespeakDates)
            {
                if (!string.IsNullOrEmpty(SeatBook_CanNotSeatBookDate.Text))
                {
                    SeatBook_CanNotSeatBookDate.Text += ";";
                }
                SeatBook_CanNotSeatBookDate.Text += cannotbookdate.BeginTime + "~" + cannotbookdate.EndTime;
            }
            cbNowDayBook.Checked               = roomSet.SeatBespeak.NowDayBespeak;
            NowDayBookTime.Text                = roomSet.SeatBespeak.SeatKeepTime.ToString();
            cbSpecifiedBook.Checked            = roomSet.SeatBespeak.SpecifiedBespeak;
            SeatBook_SelectBespeakSeat.Checked = roomSet.SeatBespeak.SelectBespeakSeat;
            SeatBook_SpecifiedTime.Checked     = roomSet.SeatBespeak.SpecifiedTime;
            SeatBook_BespeakSeatOnSeat.Checked = roomSet.SeatBespeak.BespeatWithOnSeat;
            SeatBook_BespeakSeatCount.Text     = roomSet.SeatBespeak.BespeakSeatCount.ToString();
            foreach (DateTime dt in roomSet.SeatBespeak.SpecifiedTimeList)
            {
                if (SeatBook_SpecifiedTimeList.Text != "")
                {
                    SeatBook_SpecifiedTimeList.Text += ";";
                }
                SeatBook_SpecifiedTimeList.Text += dt.ToShortTimeString();
            }

            //黑名单设置
            UseBlacklist.Checked        = roomSet.UsedBlacklistLimit;
            IsRecordViolate.Checked     = roomSet.IsRecordViolate;
            UseBlacklistSetting.Checked = roomSet.BlackListSetting.Used;
            if (UseBlacklistSetting.Checked)
            {
                UseBlacklistSettingTable.Style["display"] = "block";
            }
            else
            {
                UseBlacklistSettingTable.Style["display"] = "none";
            }
            RecordViolateCount.Text     = roomSet.BlackListSetting.ViolateTimes.ToString();
            LeaveBlackDays.Text         = roomSet.BlackListSetting.LimitDays.ToString();
            LeaveRecordViolateDays.Text = roomSet.BlackListSetting.ViolateFailDays.ToString();
            if (roomSet.BlackListSetting.LeaveBlacklist == LeaveBlacklistMode.AutomaticMode)
            {
                AutoLeave.Checked = true;
            }
            else
            {
                HardLeave.Checked = true;
            }
            RecordViolate_BookOverTime.Checked       = roomSet.BlackListSetting.ViolateRoule[ViolationRecordsType.BookingTimeOut];
            RecordViolate_LeaveByAdmin.Checked       = roomSet.BlackListSetting.ViolateRoule[ViolationRecordsType.LeaveByAdmin];
            RecordViolate_SeatOverTime.Checked       = roomSet.BlackListSetting.ViolateRoule[ViolationRecordsType.SeatOutTime];
            RecordViolate_ShortLeaveByAdmin.Checked  = roomSet.BlackListSetting.ViolateRoule[ViolationRecordsType.ShortLeaveByAdminOutTime];
            RecordViolate_ShortLeaveByReader.Checked = roomSet.BlackListSetting.ViolateRoule[ViolationRecordsType.ShortLeaveByReaderOutTime];
            RecordViolate_ShortLeaveOverTime.Checked = roomSet.BlackListSetting.ViolateRoule[ViolationRecordsType.ShortLeaveOutTime];
            //其他设置
            ShowSeatNumberCount.Text = roomSet.SeatNumAmount.ToString();
            NoManMode.Checked        = roomSet.NoManagement.Used;
            NoManMode_WaitTime.Text  = roomSet.NoManagement.OperatingInterval.ToString();

            ReaderLimit.Checked = roomSet.LimitReaderEnter.Used;
            if (roomSet.LimitReaderEnter.CanEnter)
            {
                ReaderLimit_LimitMode_Writelist.Checked = true;
            }
            else
            {
                ReaderLimit_LimitMode_Blacklist.Checked = true;
            }
            SeatManage.Bll.T_SM_Reader readerbll = new SeatManage.Bll.T_SM_Reader();
            List <string> readertype             = readerbll.GetReaderType();

            ReaderLimit_ReaderMode.Items.Clear();
            foreach (string reader in readertype)
            {
                if (string.IsNullOrEmpty(reader))
                {
                    ReaderLimit_ReaderMode.Items.Add("未指定");
                }
                else
                {
                    ReaderLimit_ReaderMode.Items.Add(reader);
                }
            }
            string[] readerType = roomSet.LimitReaderEnter.ReaderTypes.Split(';');
            foreach (ListItem ci in ReaderLimit_ReaderMode.Items)
            {
                foreach (string reader in readerType)
                {
                    if (string.IsNullOrEmpty(reader) && ci.Value == "未指定")
                    {
                        ci.Selected = true;
                        break;
                    }
                    else if (ci.Value == reader)
                    {
                        ci.Selected = true;
                        break;
                    }
                }
            }
            SameRoomSet.Items.Clear();
            List <SeatManage.ClassModel.ReadingRoomInfo> rooms = SeatManage.Bll.T_SM_ReadingRoom.GetReadingRooms(null, null, null);

            foreach (SeatManage.ClassModel.ReadingRoomInfo roominfo in rooms)
            {
                if (roominfo.No != room.No)
                {
                    ListItem li = new ListItem(roominfo.Name + "&nbsp;&nbsp;", roominfo.No);
                    SameRoomSet.Items.Add(li);
                }
            }
            for (int i = 0; i < SameRoomSet.Items.Count; i++)
            {
                SameRoomSet.Items[i].Attributes.Add("onmouseover", "showToolTip(event,'" + SameRoomSet.Items[i].Value + "')");
            }
        }
Exemplo n.º 5
0
        void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
        {
            Stop();
            try
            {
                string result = Decoder();
                if (string.IsNullOrEmpty(result))
                {
                }
                else
                {
                    objVbarapi.beepControl(1);


                    //string CardNo = AESAlgorithm.AESDecrypt(result);
                    string[] arr    = result.Split('&');
                    string[] arr1   = arr[1].Split('=');
                    string   cardNo = arr1[1];

                    //验证卡号
                    ReaderInfo reader = new SeatManage.Bll.T_SM_Reader().GetReader(cardNo);
                    if (!string.IsNullOrEmpty(reader.Name))
                    {
                        CardNoGeted(this, new SeatManage.ISystemTerminal.IPOS.CardEventArgs(cardNo, true, null));
                    }
                    else
                    {
                        SeatManage.SeatManageComm.WriteLog.Write("扫码结果:" + result + "学号不存在");
                    }

                    //CardNoGeted(this, new SeatManage.ISystemTerminal.IPOS.CardEventArgs(cardNo, true, null));
                    // SeatManage.SeatManageComm.WriteLog.Write("扫码结果:" + result);
                }
                //objVbarapi.disConnected();


                //string cardId = cardReader.GetCardId();
                ////获取到信息,读卡器响
                //if (!string.IsNullOrEmpty(cardId))
                //{
                //    SeatManage.SeatManageComm.WriteLog.Write(cardId);
                //    string cardNo = GetCardNo(cardId.ToUpper());
                //    if (!string.IsNullOrEmpty(cardNo) && CardNoGeted != null)
                //    {
                //        CardNoGeted(this, new SeatManage.ISystemTerminal.IPOS.CardEventArgs(cardNo, true, null));
                //    }
                //    else
                //        if (string.IsNullOrEmpty(cardNo))
                //    {
                //        cardReader.Beep();
                //    }
                //}
            }
            catch (Exception ex)
            {
                SeatManage.SeatManageComm.WriteLog.Write(ex.ToString());
            }
            finally
            {
                Start();
            }
        }