예제 #1
0
        public async Task Load()
        {
            try
            {
                IsBusy = true;
                var context = new CustomerStatementQueryContext
                {
                    CustomerInfo = Api.GetCustomerContext()
                };
                var data = await Api.GetFinancialStatement(context);

                if (data == null)
                {
                    await Alert.ShowMessage(Translate.Get(nameof(AppResources.NoFinancialStatementReturned)));

                    return;
                }
                PdfStream = new MemoryStream(data);
            }
            catch (Exception ex)
            {
                await Alert.DisplayError(ex);
            }
            finally
            {
                IsBusy = false;
            }
        }
예제 #2
0
        public async Task <byte[]> GetFinancialStatement(CustomerStatementQueryContext context)
        {
            var result = await AXClient.Instance.GetCustomerAccountStatementAsync(context)
                         .ConfigureAwait(false);

            return(result);
        }