Пример #1
0
        private void UpdateRemittance(object sender, RoutedEventArgs e)
        {
            var model         = (sender as Button).DataContext as TdsRemittanceDto;
            var challanAmount = model.TdsAmount + model.TdsInterest + model.LateFee;

            Traces traces = new Traces(model);

            traces.Owner = this;
            traces.ShowDialog();
        }
Пример #2
0
        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();
            }
        }