private async void DownLoadForm(object sender, RoutedEventArgs e) { var model = (sender as Button).DataContext as TdsRemittanceDto; var tdsremittanceModel = svc.GetTdsRemitanceById(model.ClientPaymentTransactionID); var remittanceModel = svc.GetRemitanceByTransID(model.ClientPaymentTransactionID); if (tdsremittanceModel != null) { TracesProgressbar.Visibility = Visibility.Visible; await Task.Run(() => { FillTraces.AutoFillDownload(tdsremittanceModel, remittanceModel.F16BRequestNo, remittanceModel.DateOfBirth); }); // FillTraces.AutoFillDownload(tdsremittanceModel, remittanceModel.F16BRequestNo, remittanceModel.DateOfBirth); TracesProgressbar.Visibility = Visibility.Hidden; } }
private async void RequestForm16B(object sender, RoutedEventArgs e) { var model = (sender as Button).DataContext as TdsRemittanceDto; var tdsremittanceModel = svc.GetTdsRemitanceById(model.ClientPaymentTransactionID); var reqNo = ""; TracesProgressbar.Visibility = Visibility.Visible; if (tdsremittanceModel != null) { await Task.Run(() => { reqNo = FillTraces.AutoFillForm16B(tdsremittanceModel); }); } //reqNo = FillTraces.AutoFillForm16B(tdsremittanceModel); TracesProgressbar.Visibility = Visibility.Hidden; if (reqNo != "") { var challanAmount = model.TdsAmount + model.TdsInterest + model.LateFee; Traces traces = new Traces(model, reqNo); traces.Owner = this; traces.ShowDialog(); } }