private void RebindBookingPaymentData() { if (ucSitePicker.SiteId > 0 && uiDateFrom.SelectedDate.HasValue && uiDateTo.SelectedDate.HasValue && uiCustomers.SelectedValue != null) { Globals.IsBusy = true; int payment = 2; if (radPaid.IsChecked == true) { payment = 1; } else if (radNotPaid.IsChecked == true) { payment = 0; } int customerId = Convert.ToInt32(uiCustomers.SelectedValue); DataServiceHelper.ListHistoryPaymentAsync(Globals.UserLogin.UserOrganisationId, ucSitePicker.SiteId, null, customerId, uiDateFrom.SelectedDate.Value, uiDateTo.SelectedDate.Value, payment, ListBookingPaymentCompleted); } }