Beispiel #1
0
        private async void LoadAllItem()
        {
            IRestDataMapper mapper = containerExtension.Resolve <IRestDataMapper>();

            Branches = await BranchRestService.GetAllBranchAsync(mapper);

            Banks = await BankRestService.GetAllBankAsync(mapper);

            BrancheAcs = await BranchRestService.GetAllBranchAccountAsync(mapper, loggedUser.LoggedUser.branch.id);

            Measures = await ItemRestService.GetAllUnitAsync(mapper);
        }
Beispiel #2
0
        private async void LoadAutoData()
        {
            IRestDataMapper mapper = containerExtension.Resolve <IRestDataMapper>();
            ObservableCollection <SupplierCriteria> sus = await SupplierRestService.GetSupplierAttribsByBranchIdAsync(mapper, loggedUser.LoggedUser.branch.id);

            SupSugges = new SupplierSuggestionProvider()
            {
                supplierCriterias = sus
            };
            ObservableCollection <ItemCriteria> its = await ItemRestService.GetItemAttribsByBranchIdAsync(mapper);

            ItmSugges = new ItemSuggestionProvider()
            {
                itemCriterias = its, DisplayMember = DisplayMem
            };
            ObservableCollection <BranchAccount> bacs = await BranchRestService.GetAllBranchAccountAsync(mapper, loggedUser.LoggedUser.id);

            BacSugges = new BranchAccountSuggestionProvider()
            {
                brancgAcCriterias = bacs
            };
        }