void getFisler() { urunList.Clear(); foreach (ImageForApiModel item in images) { ReceiptStr fis = RemoteApi.GetFisFromApi(item.imageArray, item.fileName); fisler.Add(fis); totalAmount += Convert.ToDecimal(fis.GrandTotal); totalTax += Convert.ToDecimal(fis.TaxTotal); urunList.AddRange(fis.RecipeItems); } }
public FisDetay(ReceiptStr fis) { receipt = fis; InitializeComponent(); if (receipt == null) { DisplayAlert("File Location", "Fiş Yüklenemedi", "OK"); return; } lblCompany.Text = receipt.Company; lblAdress.Text = receipt.Adress; lblTarih.Text = receipt.Date; lblSaat.Text = receipt.Time; lblFisNo.Text = receipt.DocumentNumber; for (int i = 0; i < receipt.RecipeItems.Count; i++) { RecipeItemStr item = receipt.RecipeItems[i]; Label lblLineDescription = new Label(); lblLineDescription.Text = item.LineDescription; grdRecipeItems.Children.Add(lblLineDescription, 0, i); Label lblLineTax = new Label(); lblLineTax.Text = item.LineTax; grdRecipeItems.Children.Add(lblLineTax, 1, i); Label lblLineTotal = new Label(); lblLineTotal.Text = item.LineTotal; lblLineTotal.HorizontalOptions = LayoutOptions.End; grdRecipeItems.Children.Add(lblLineTotal, 2, i); } lblToplamKdv.Text = receipt.TaxTotal; lblToplamTutar.Text = receipt.GrandTotal; lblTaxNumber.Text = receipt.TaxNumber; }