Esempio n. 1
0
        private void RaiseEventStatus(string status)
        {
            BILL_STATUS cashStatus = BILL_STATUS.ENABLED;

            switch (status)
            {
            case "3E":      //ACK  ACCEPTED RESPONSE
                cashStatus = BILL_STATUS.ENABLED;
                break;

            case "5E":
                cashStatus = BILL_STATUS.DISABLED;
                break;

            case "10":
                break;

            case "11":
                break;

            /*
             * 20 Motor Failure
             * 21 Checksum Error
             * 22 Bill Jam
             * 23 Bill Remove
             * 24 Stacker Open
             * 25 Sensor Problem
             * 27 Bill Fish
             * 28 Stacker Problem
             * 29 Bill Reject
             * 2A Invalid Command
             * 2E Reserved
             * 2F Response when Error Status is Exclusion
             */
            default:
                cashStatus = BILL_STATUS.ERROR;
                break;
            }
            if (this.EventOnReadStatus != null)
            {
                EventArgsBankNoteStatus eventArgsReadStatus = new EventArgsBankNoteStatus(cashStatus);
                this.EventOnReadStatus(this, eventArgsReadStatus);
            }
        }
 public EventArgsBankNoteStatus(BILL_STATUS _status)
 {
     Status = _status;
 }