private void OnAutocompleteCityClick(object adapter, AdapterView.ItemClickEventArgs eventArgs)
        {
            var item = _cityAdapter.GetItem(eventArgs.Position);

            Entity.City.Id   = item.Id;
            Entity.City.Name = item.Name;
        }
Exemplo n.º 2
0
        private void OnAutocompleteInvoiceClick(object sender, AdapterView.ItemClickEventArgs eventArgs)
        {
            var item = _invoiceAdapter.GetItem(eventArgs.Position);

            AddGoodsReceivedNoteInvoiceId.Tag = item;

            if (item.GoodsReceivedNote != null)
            {
                return;
            }

            var items = item
                        .Products
                        .Select(pr => new Models.NoteEntry
            {
                Name = pr.Name
            })
                        .ToList();

            _addGoodsReceivedNoteAdapter.UpdateList(items);
        }
Exemplo n.º 3
0
        private void OnAutocompleteCounterpartyClick(object adapter, AdapterView.ItemClickEventArgs eventArgs)
        {
            var item = _counterPartyAdapter.GetItem(eventArgs.Position);

            Entity.Counterparty = item;
        }