Beispiel #1
0
            /// <summary>
            /// CSV_Entry - generate a comma separated data entry for a transaction
            /// </summary>
            /// <returns></returns>
            public override string CSV_Entry()
            {
                if (ReturningKey)
                {
                    //Update existing row
                    UpdateDBTransaction();
                }
                else
                {
                    //Insert
                    InsertDBTransaction();
                }

                try
                {
                    return(String.Format("{0},{1},{2:d},{3},{4},{5},{6},{7}",
                                         Date, Time, BoxNumber, DoorOpened.ToString(), AccessCode, OperatorNumber, ReturningKey, Odometer));
                }
                catch (Exception ex)
                {
                    Program.logEvent("error creating csv entry" + ex.Message);
                    Program.SqlManager.ErrorDatabaseEntry(AccessCode, OperatorNumber, DateTime.Now.ToString(), Program.KIOSK_ID, 0, "error creating csv entry" + ex.Message, "", Odometer);
                    return("transaction recording error");
                }
            }
Beispiel #2
0
            /// <summary>
            /// CSV_Entry - generate a comma separated data entry for a transaction
            /// </summary>
            /// <returns></returns>
            public override string CSV_Entry()
            {
                RFIDTagNumber   = ObjectList[LocateIndexOfDataObjectByName("TagNum")].data.ToString();
                RFIDTagDetected = bool.Parse(ObjectList[LocateIndexOfDataObjectByName("TagDetected")].data.ToString());

                if (Program.ENABLE_SQLITE)
                {
                    if (!ReturningKey)
                    {
                        InsertDBTransaction();
                    }
                    else
                    {
                        UpdateDBTransaction();
                    }
                }

                try
                {
                    return(String.Format("{0},{1},{2:d},{3:b},{4},{5},{6:b},{7},{8:b}",
                                         Date, Time, BoxNumber, DoorOpened.ToString(), CardNumber, CardName, ReturningKey, RFIDTagNumber, RFIDTagDetected));
                }
                catch (Exception ex)
                {
                    Program.logEvent("error creating csv entry" + ex.Message);
                    return("transaction recording error");
                }
            }
Beispiel #3
0
 public void Open(bool legal)
 {
     Open();
     if (legal == false && Changed == true)
     {
         DoorOpened?.Invoke();
     }
 }
Beispiel #4
0
 public bool openDoor()
 {
     if (isLocked)
     {
         return(false);
     }
     DoorOpened?.Invoke(this, EventArgs.Empty);
     return(true);
 }
Beispiel #5
0
    public void Open()
    {
        if (_isLocked || _isOpened)
        {
            return;
        }
        float angle = _clockwise ? -90 : 90;

        transform.RotateAround(_rotationPivot.position, Vector3.forward, angle);
        _isOpened = true;
        DoorOpened?.Invoke();
    }
 /// <summary>
 /// CSV_Entry - generate a comma separated data entry for a transaction
 /// </summary>
 /// <returns></returns>
 public override string CSV_Entry()
 {
     try
     {
         return(String.Format("{0},{1},{2:d},{3},{4},{5},{6}",
                              Date, Time, BoxNumber, DoorOpened.ToString(), AccessCode, BikeType.ToString(), ReturningKey.ToString()));
     }
     catch (Exception ex)
     {
         Program.logEvent("error creating csv entry" + ex.Message);
         return("transaction recording error");
     }
 }
        public void Tick()
        {
            if (_isOpened || !_isNear || !Input.GetButtonDown("Interact"))
            {
                return;
            }

            _audio.Play();

            _collider.enabled = false;
            _isOpened         = true;

            insideCollider.SetActive(false);
            outsideCollider.SetActive(true);

            characterController.Move(newPosition.position - characterController.transform.position);

            DoorOpened?.Invoke();
        }
 /// <summary>
 /// Returns an array of the data which is applicable to an Nebraska transaction
 /// </summary>
 /// <returns></returns>
 public override string[] TransactionData()
 {
     return(new string[] { Date, Time, BoxNumber.ToString(), DoorOpened.ToString(), AccessCode, CardNumber, IdentificationType, ReturningKey.ToString(), CarDamaged.ToString(), CarCleaned.ToString(), CarRefueled.ToString(), TransactionNumber });
 }
 protected virtual void OnDoorOpened(EventArgs e)
 {
     DoorOpened?.Invoke(this, e);
 }
Beispiel #10
0
 private void Apply(DoorOpened e)
 {
     AggregateGuid = e.AggregateGuid;
 }
 /// <summary>
 /// Returns an array of the data which is applicable to an Ontario transaction
 /// </summary>
 /// <returns></returns>
 public override string[] TransactionData()
 {
     return(new string[] { Date, Time, BoxNumber.ToString(), DoorOpened.ToString(), AccessCode, BikeType.ToString(), ReturningKey.ToString() });
 }
 public override string[] TransactionData()
 {
     return(new string[] { Date, Time, BoxNumber.ToString(), DoorOpened.ToString(), CardNumber, CardName });
 }
Beispiel #13
0
 /// <summary>
 /// Method that invokes DoorOpened event
 /// </summary>
 protected virtual void OnDoorOpened()
 {
     DoorOpened?.Invoke();
 }
 public void OnDoorOpened()
 {
     DoorOpened?.Invoke(this, EventArgs.Empty);
 }
 public void Handler(DoorOpened @event)
 {
     var device   = @event.AggregateGuid;
     var tenantId = @event.Metadata.TenantId;
 }