private async void SlCashPayment_Tapped(object sender, EventArgs e)
 {
     try
     {
         objresult.ActualEndTime = DateTime.Now;
         objresult.PaymentTypeID.PaymentTypeName = "Cash";
         var checkOutPaymentConfirmationPage = new CheckOutPaymentConfirmationPage("OverstayVehicleInformation", objresult);
         await Navigation.PushAsync(checkOutPaymentConfirmationPage);
     }
     catch (Exception ex)
     {
         dal_Exceptionlog.InsertException(Convert.ToString(App.Current.Properties["apitoken"]), "Operator App", ex.Message, "OverstayVehicleInformation.xaml.cs", "", "SlCashPayment_Tapped");
     }
 }
 private async void SlEPAYPayment_Tapped(object sender, EventArgs e)
 {
     try
     {
         objresult.ActualEndTime   = DateTime.Now;
         objresult.ExpectedEndTime = DateTime.Now;
         objresult.DueAmount       = string.IsNullOrEmpty(labelDueAmount.Text) ? 0 : Convert.ToDecimal(labelDueAmount.Text);
         objresult.PaymentTypeID.PaymentTypeName = "EPay";
         var checkOutPaymentConfirmationPage = new CheckOutPaymentConfirmationPage("ViolationVehicleInformation", objresult);
         await Navigation.PushAsync(checkOutPaymentConfirmationPage);
     }
     catch (Exception ex)
     {
         dal_Exceptionlog.InsertException(Convert.ToString(App.Current.Properties["apitoken"]), "Operator App", ex.Message, "ViolationVehicleInformation.xaml.cs", "", "SlEPAYPayment_Tapped");
     }
 }
Пример #3
0
        private async void SlCashPayment_Tapped(object sender, EventArgs e)
        {
            try
            {
                ShowLoading(true);
                objresult.ActualEndTime = DateTime.Now;
                objresult.PaymentTypeID.PaymentTypeName = "Cash";
                objresult.ExtendAmount = 0;
                var checkOutPaymentConfirmationPage = new CheckOutPaymentConfirmationPage("PassCheckInVehicleInformation", objresult);
                await Navigation.PushAsync(checkOutPaymentConfirmationPage);

                ShowLoading(false);
            }
            catch (Exception ex)
            { }
        }