Beispiel #1
0
        public async void Search()
        {
            var result = await _productTransferServices.GetRequests(1, 10, TransferCode);

            if (result != null)
            {
                var _result = result.Item1.Select(item => new TransferDetail()
                {
                    Id               = item.Id,
                    DateCreated      = item.DateCreated,
                    Observation      = item.Observation,
                    products         = item.products,
                    Status           = getStatusName(item.Status),
                    WarehouseDestiny = item.WarehouseDestiny,
                    WarehouseOrigin  = item.WarehouseOrigin
                });

                ProductTransferSummaryCollection = new ObservableCollection <TransferDetail>(_result.ToList());
            }
            else
            {
                ProductTransferSummaryCollection = new ObservableCollection <TransferDetail>();
            }


            HeightList = (ProductTransferSummaryCollection.Count * 75) + (ProductTransferSummaryCollection.Count * 10);
        }
Beispiel #2
0
        private async Task <StaticPagedList <TransferDetail> > ListTransfer(int aPage, int aItemsPerPage, string aStringSearch)
        {
            _productTransferServices = new ProductTransferServices();

            List <TransferDetail> x = new List <TransferDetail>();

            var transfers = await _productTransferServices.GetRequests(aPage - 1, aItemsPerPage, aStringSearch);

            x = transfers.Item1;

            return(new StaticPagedList <TransferDetail>(x, aPage, aItemsPerPage, transfers.Item2));
        }