Beispiel #1
0
        public async Task Init()
        {
            KupciSearchRequest trenutni = new KupciSearchRequest();

            trenutni.KorisnickoIme = APIService.Username.ToString();
            //trenutni.Prezime = null;

            APIService.Username = baza;
            APIService.Password = baza;
            VrstaAplikacijeInsert vrstaApp = new VrstaAplikacijeInsert();

            vrstaApp.DesktopStatus = 0;
            await _serviceVrsta.Update <dynamic>(1, vrstaApp);

            APIService.Username = user;
            APIService.Password = pass;

            List <Model.Kupci> tk = await _kupciService.Get <List <Model.Kupci> >(trenutni);

            var list = await _racuniService.Get <IEnumerable <Racuni> >(null);


            RacuniList.Clear();
            foreach (var racuni in list)
            {
                if (racuni.KupacId == tk[0].KupacId)
                {
                    RacuniList.Add(racuni);
                }
            }
        }
Beispiel #2
0
        public async Task Init()
        {
            IsPraznaLista = false;
            var request = new RacunSearchRequest();

            request.NijeUplatioRequest = true;
            request.PacijentId         = APIService.PacijentId;
            UserDialogs.Instance.ShowLoading("Učitavanje podataka o računima..");
            var list = await _service.GetAll <List <Model.Racun> >(request);

            RacuniList.Clear();
            foreach (var racun in list)
            {
                RacuniList.Add(racun);
            }

            if (RacuniList.Count == 0)
            {
                IsPraznaLista = true;
            }
            UserDialogs.Instance.HideLoading();
        }