CheckGasCard() public method

public CheckGasCard ( ) : void
return void
Ejemplo n.º 1
0
        //读卡
        public void ReadCard()
        {
            this.IsBusy = true;
            RXCard r = new RXCard(true);

            r.CheckGasCard();
            if (r.State == State.End)
            {
                CardId   = "";
                Factory  = "";
                Gas      = 0;
                BuyTimes = 0;
                Klx      = -1;
                Kzt      = -1;
                Dqdm     = "";
                Yhh      = "";
                Tm       = "";
                Ljgql    = 0;
                Bkcs     = 0;
                Ljyql    = 0;
                Syql     = 0;
                Bjql     = 0;
                Czsx     = 0;
                Tzed     = 0;
                Sqrq     = "";
                r.ReadGasCard();
                if (r.State == State.Loaded)
                {
                    this.Klx      = r.Klx;
                    this.Kzt      = r.Kzt;
                    this.CardId   = r.KH;
                    this.Dqdm     = r.Dqdm;
                    this.Yhh      = r.Yhh;
                    this.Tm       = r.Tm;
                    this.Gas      = r.Ql;
                    this.BuyTimes = r.Cs;
                    this.Ljgql    = r.Ljgql;
                    this.Ljyql    = r.Ljyql;
                    this.Syql     = r.Syql;
                    this.Bjql     = r.Bjql;
                    this.State    = r.State;
                    this.Factory  = "RXIC";
                }
                else
                {
                    this.State = r.State;
                    this.Error = r.Error;
                }
                OnReadCompleted(null);
            }
            else
            {
                base.ReadCard();
            }
            this.IsBusy = false;
        }
Ejemplo n.º 2
0
 //读卡
 public void ReadCard()
 {
     this.IsBusy = true;
     RXCard r = new RXCard(true);
     r.CheckGasCard();
     if (r.State==State.End)
     {
         CardId = "";
         Factory = "";
         Gas = 0;
         BuyTimes = 0;
         Klx = -1;
         Kzt = -1;
         Dqdm = "";
         Yhh = "";
         Tm = "";
         Ljgql = 0;
         Bkcs = 0;
         Ljyql = 0;
         Syql = 0;
         Bjql = 0;
         Czsx = 0;
         Tzed = 0;
         Sqrq = "";
         r.ReadGasCard();
         if (r.State == State.Loaded)
         {
             this.Klx = r.Klx;
             this.Kzt = r.Kzt;
             this.CardId = r.KH;
             this.Dqdm = r.Dqdm;
             this.Yhh = r.Yhh;
             this.Tm = r.Tm;
             this.Gas = r.Ql;
             this.BuyTimes = r.Cs;
             this.Ljgql = r.Ljgql;
             this.Ljyql = r.Ljyql;
             this.Syql = r.Syql;
             this.Bjql = r.Bjql;
             this.State = r.State;
             this.Factory = "RXIC";
         }
         else
         {
             this.State = r.State;
             this.Error = r.Error;
         }
         OnReadCompleted(null);
     }
     else
     {
         base.ReadCard();
     }
     this.IsBusy = false;
 }