Esempio n. 1
0
        async private void OnInit(int claimID)
        {
            ClaimPickerComboCO.ItemsSource = s1.ClaimsList;
            if (ClaimPickerComboCO.SelectedIndex != -1)
            {
                claimID = s1.Claim.ClaimID;
            }
            else
            {
                s1.Claim.ClaimID = claimID;
            }
            PayoutCheckBoxCO.IsChecked = false;
            PayoutSliderCO.IsEnabled   = false;
            s1.Inspection.ClaimID      = claimID;
            await s1.GetSumOfPaymentsByClaimID(s1.Claim);

            await s1.GetSumOfInvoicesByClaimID(s1.Claim);

            await s1.GetPlanesByInspectionID(s1.Inspection);

            DoMath();
        }