示例#1
0
        private void PerformEndShiftOrTillClose()
        {
            if (string.IsNullOrEmpty(_validateTillCloseResponse.CloseTillMessage.Message) &&
                !string.IsNullOrEmpty(_validateTillCloseResponse.ReadTotalizerMessage.Message) &&
                _apiResponseForReadTotalizer == null)
            {
                EndShift();
            }
            else
            {
                PerformAction(async() =>
                {
                    var response = await _logoutBussinesslogic.CloseTill();
                    NavigateService.Instance.NavigateToCloseTill();

                    var closeTillMessage = new CloseTillMessage
                    {
                        ApiResponseForReadTankDip   = _apiResponseForReadTankDip,
                        ApiResponseForReadTotalizer = _apiResponseForReadTotalizer
                    };

                    MessengerInstance.Send <CloseTillMessage>(closeTillMessage, "CloseTillMessage");
                    MessengerInstance.Send(response, "SetCloseTill");
                });
            }
        }
示例#2
0
 private void SetCloseTillValues(CloseTillMessage message)
 {
     CloseTillMessage = message;
 }