protected void ShipMethodModel_ShipMethodChanged(object sender, EventArgs eventArgs) { PaymentView.NotifyOrderDetailsChanged(); // Refresh page state this.ShowCurrentPageState(); }
public PaymentViewVM(PaymentView view, ClientService service) { this.view = view; this.service = service; initView(); }
private void payButtonPressed(object parameter) { if (this.SaleProducts.Count != 0) { PaymentView payment_view = new PaymentView(this); payment_view.Left = HomeViewModel.MainView.Left + (HomeViewModel.MainView.ActualWidth / 2) - payment_view.ActualWidth; payment_view.Top = HomeViewModel.MainView.Top + 160; payment_view.Total = this.Total; payment_view.ShowDialog(); } }
public async Task <IActionResult> Create([Bind(properties)] PaymentView c) { if (!ModelState.IsValid) { return(View(c)); } c.ID = c.ID ?? Guid.NewGuid().ToString(); var o = PaymentViewFactory.Create(c); await payments.AddObject(o); return(RedirectToAction("Index")); }
public void AddPayment() { PaymentViewModel vm = new PaymentViewModel(GuestDetails.Invoice); PaymentView view = new PaymentView(); view.DataContext = vm; view.ShowDialog(); GuestDetails = unitOfWork.RepoGuests.Retrieve(x => x.GuestID == importedGuest.GuestID, x => x.Residence, x => x.GuestRole, x => x.Room, x => x.Residence.Nationality, x => x.Invoice, x => x.Invoice.TicketType, x => x.Invoice.Payments, x => x.WorkshopParticipants, x => x.WorkshopParticipants.Select(c => c.Workshop), x => x.WorkshopParticipants.Select(c => c.Workshop.TimeSlot)).FirstOrDefault(); SetGuestInfo(); }
protected void ShippingAddressEditModel_AddressChanged(object sender, AddressChangedEventArgs addressChanged) { // update primary shipping address id this.AccountModel.PrimaryShippingAddressId = this.AccountModel.ShippingAddress.AddressId; // if we don't have a billing address yet, then set the billing address id = shipping address id if (string.IsNullOrEmpty(this.AccountModel.PrimaryBillingAddressId) || this.AccountModel.PrimaryBillingAddressId == "0") { this.AccountModel.PrimaryBillingAddressId = this.AccountModel.PrimaryShippingAddressId; } PaymentView.NotifyOrderDetailsChanged(); }
protected void ShoppingCartModel_ItemQuantityChanged(object source, EventArgs args) { if (this.ShoppingCartModel.ShoppingCartItems.Count() <= 0) { Response.Redirect("~/shoppingcart.aspx"); } PaymentView.NotifyOrderDetailsChanged(); this.MiniCartView.BindView(); this.MiniCartCartSummary.BindView(); this.ShoppingCartModel.ShippingMethodId = string.Empty; }
// POST api/<controller> public IHttpActionResult Post(PaymentView s) { var item = new Payment { ID = s.PaymentID, PaymentName = s.PaymentName }; var res = Repositories.CreatePayment(item); if (res == true) { return(Ok()); } return(InternalServerError()); }
public Task Handle(PaymentRequested notification, CancellationToken cancellationToken) { var paymentView = new PaymentView { Id = notification.Id.IdAsString(), CardNumber = notification.CreditCard.CardNumber.MaskCardNumber(), Amount = notification.Amount.Amount, Currency = notification.Amount.Currency.ToString(), Status = PaymentStatus.Pending.ToString() }; return(_repository.Save(paymentView)); }
public ActionResult CreatePayment(PaymentView p) { HttpResponseMessage res = APIService.client.PostAsJsonAsync("Payment", p).Result; if (res.IsSuccessStatusCode) { TempData["success"] = "Create new payment successfully!"; } else { TempData["error"] = "Create new payment failed!"; } return(RedirectToAction("Payment")); }
public IHttpActionResult AddPayment(PaymentView objPaymentRec) { try { objPaymentRec.FK_MemberId = getMemberId(objPaymentRec.CommiteId, objPaymentRec.FK_MemberId); PaymentRecord objPayment = new PaymentRecord(); objPaymentRec.CopyProperties(objPayment); _PaymentService.Create(objPayment); return(Ok(objPaymentRec)); } catch (Exception ex) { throw ex; } }
public async Task <IActionResult> Edit([Bind(properties)] PaymentView c) { if (!ModelState.IsValid) { return(View(c)); } var o = await payments.GetObject(c.ID); o.Data.Amount = c.Amount; o.Data.CurrencyID = c.CurrencyID; o.Data.PaymentMethodID = c.PaymentMethodID; o.Data.DateMade = c.DateMade ?? DateTime.MinValue; o.Data.DateDue = c.DateDue ?? DateTime.MinValue; o.Data.ValidTo = c.ValidTo ?? DateTime.MaxValue; await payments.UpdateObject(o); return(RedirectToAction("Index")); }
private void SetActiveView() { switch (CurrentDiv) { case ActiveDiv.TrialSelect: views.SetActiveView(ViewTrialSelect); break; case ActiveDiv.Shopinfo: ShopinfoView.LoadData(); views.SetActiveView(ViewShopinfo); break; case ActiveDiv.Finance: FinanceView.LoadData(); views.SetActiveView(ViewFinance); break; case ActiveDiv.Payment: PaymentView.LoadData(); views.SetActiveView(ViewPayment); break; case ActiveDiv.Shipping: ShippingView.LoadData(); views.SetActiveView(ViewShipping); break; case ActiveDiv.OpenidParagraf: OpenidParagrafView.LoadData(); views.SetActiveView(ViewOpenidParagraf); break; case ActiveDiv.NotifyParagraf: NotifyParagrafView.LoadData(); views.SetActiveView(ViewNotifyParagraf); break; case ActiveDiv.Final: views.SetActiveView(ViewFinal); break; } }
private void PaymentView_CustomSummaryCalculate(object sender, DevExpress.Data.CustomSummaryEventArgs e) { int lCount = 0; decimal Tot = 0; if (((DevExpress.XtraGrid.GridSummaryItem)e.Item).FieldName == "CumulativeAmount") { if (PaymentView.RowCount > 0) { for (lCount = 0; lCount < PaymentView.RowCount; lCount++) { if (PaymentView.GetRowCellValue(lCount, "NetAmount") != DBNull.Value) { Tot = (Tot + Convert.ToDecimal(PaymentView.GetRowCellValue(lCount, "NetAmount"))); } } } e.TotalValue = Tot; } }
private void attendConference_button_Click(object sender, EventArgs e) { if (Conferences_dataGridView.RowCount == 0) { MessageBox.Show("There's no conference!"); return; } try { int selectedrowindex = Conferences_dataGridView.SelectedCells[0].RowIndex; DataGridViewRow selectedRow = Conferences_dataGridView.Rows[selectedrowindex]; int idConf = Convert.ToInt16(selectedRow.Cells["Id"].Value); ctrl.attendToConference(participant.ID, idConf); PaymentView payment = new PaymentView(); payment.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void PaymentButton_Click(object sender, EventArgs e) { PaymentView payment = new PaymentView(); Helper.AssignFormToPanel(DashboardView.Container, payment); }
public override void LoadView () { View = new PaymentView (); }
public void TestHouseholdMemberCreationFlow() { using (ClaimsPrincipalTestExecutor executor = new ClaimsPrincipalTestExecutor()) { IList <TranslationInfoSystemView> translationInfoCollection = new List <TranslationInfoSystemView>(_householdDataService.TranslationInfoGetAll(new TranslationInfoCollectionGetQuery())); _householdDataService.TranslationInfoGetAll(new TranslationInfoCollectionGetQuery()); Assert.That(translationInfoCollection, Is.Not.Null); Assert.That(translationInfoCollection, Is.Not.Empty); Guid translationInfoIdentifier = translationInfoCollection.Take(1).First().TranslationInfoIdentifier; DataProviderWhoHandlesPaymentsCollectionGetQuery dataProviderWhoHandlesPaymentsCollectionGetQuery = new DataProviderWhoHandlesPaymentsCollectionGetQuery { TranslationInfoIdentifier = translationInfoIdentifier }; IList <DataProviderView> dataProviderWhoHandlesPaymentsCollection = new List <DataProviderView>(_householdDataService.DataProviderWhoHandlesPaymentsCollectionGet(dataProviderWhoHandlesPaymentsCollectionGetQuery)); Assert.That(dataProviderWhoHandlesPaymentsCollection, Is.Not.Null); Assert.That(dataProviderWhoHandlesPaymentsCollection, Is.Not.Empty); Guid dataProviderWhoHandlesPaymentsIdentifier = dataProviderWhoHandlesPaymentsCollection.Take(1).First().DataProviderIdentifier; Guid householdMemberIdentifier = _logicExecutor.HouseholdMemberAdd(executor.MailAddress, translationInfoIdentifier); try { BooleanResultResponse householdMemberIsCreated = _householdDataService.HouseholdMemberIsCreated(new HouseholdMemberIsCreatedQuery()); Assert.That(householdMemberIsCreated, Is.Not.Null); Assert.That(householdMemberIsCreated.Result, Is.True); BooleanResultResponse householdMemberIsActivated = _householdDataService.HouseholdMemberIsActivated(new HouseholdMemberIsActivatedQuery()); Assert.That(householdMemberIsActivated, Is.Not.Null); Assert.That(householdMemberIsActivated.Result, Is.False); HouseholdMemberActivateCommand householdMemberActivateCommand = new HouseholdMemberActivateCommand { ActivationCode = _householdDataRepository.Get <IHouseholdMember>(householdMemberIdentifier).ActivationCode }; ServiceReceiptResponse householdMemberActivate = _householdDataService.HouseholdMemberActivate(householdMemberActivateCommand); Assert.That(householdMemberActivate, Is.Not.Null); Assert.That(householdMemberActivate.Identifier, Is.EqualTo(householdMemberIdentifier)); householdMemberIsActivated = _householdDataService.HouseholdMemberIsActivated(new HouseholdMemberIsActivatedQuery()); Assert.That(householdMemberIsActivated, Is.Not.Null); Assert.That(householdMemberIsActivated.Result, Is.True); BooleanResultResponse householdMemberHasAcceptedPrivacyPolicy = _householdDataService.HouseholdMemberHasAcceptedPrivacyPolicy(new HouseholdMemberHasAcceptedPrivacyPolicyQuery()); Assert.That(householdMemberHasAcceptedPrivacyPolicy, Is.Not.Null); Assert.That(householdMemberHasAcceptedPrivacyPolicy.Result, Is.False); ServiceReceiptResponse householdMemberAcceptPrivacyPolicy = _householdDataService.HouseholdMemberAcceptPrivacyPolicy(new HouseholdMemberAcceptPrivacyPolicyCommand()); Assert.That(householdMemberAcceptPrivacyPolicy, Is.Not.Null); Assert.That(householdMemberAcceptPrivacyPolicy.Identifier, Is.EqualTo(householdMemberIdentifier)); householdMemberHasAcceptedPrivacyPolicy = _householdDataService.HouseholdMemberHasAcceptedPrivacyPolicy(new HouseholdMemberHasAcceptedPrivacyPolicyQuery()); Assert.That(householdMemberHasAcceptedPrivacyPolicy, Is.Not.Null); Assert.That(householdMemberHasAcceptedPrivacyPolicy.Result, Is.True); HouseholdMemberDataGetQuery householdMemberDataGetQuery = new HouseholdMemberDataGetQuery { TranslationInfoIdentifier = translationInfoIdentifier }; HouseholdMemberView householdMemberData = _householdDataService.HouseholdMemberDataGet(householdMemberDataGetQuery); Assert.That(householdMemberData, Is.Not.Null); Assert.That(householdMemberData.HouseholdMemberIdentifier, Is.EqualTo(householdMemberIdentifier)); Assert.That(householdMemberData.MailAddress, Is.Not.Null); Assert.That(householdMemberData.MailAddress, Is.Not.Empty); Assert.That(householdMemberData.MailAddress, Is.EqualTo(executor.MailAddress)); Assert.That(householdMemberData.Membership, Is.Not.Null); Assert.That(householdMemberData.Membership, Is.Not.Empty); Assert.That(householdMemberData.Membership, Is.EqualTo(Convert.ToString(Membership.Basic))); Assert.That(householdMemberData.MembershipExpireTime, Is.Null); Assert.That(householdMemberData.MembershipExpireTime.HasValue, Is.False); Assert.That(householdMemberData.CanRenewMembership, Is.False); Assert.That(householdMemberData.CanUpgradeMembership, Is.True); Assert.That(householdMemberData.ActivationTime, Is.Not.Null); Assert.That(householdMemberData.ActivationTime, Is.EqualTo(DateTime.Now).Within(5).Seconds); Assert.That(householdMemberData.IsActivated, Is.True); Assert.That(householdMemberData.PrivacyPolicyAcceptedTime, Is.Not.Null); Assert.That(householdMemberData.PrivacyPolicyAcceptedTime.Value, Is.EqualTo(DateTime.Now).Within(5).Seconds); Assert.That(householdMemberData.IsPrivacyPolicyAccepted, Is.True); Assert.That(householdMemberData.HasReachedHouseholdLimit, Is.False); Assert.That(householdMemberData.CanCreateStorage, Is.False); Assert.That(householdMemberData.CanUpdateStorage, Is.True); Assert.That(householdMemberData.CanDeleteStorage, Is.False); Assert.That(householdMemberData.CreationTime, Is.EqualTo(DateTime.Now).Within(5).Seconds); Assert.That(householdMemberData.Households, Is.Not.Null); Assert.That(householdMemberData.Households, Is.Empty); Assert.That(householdMemberData.UpgradeableMemberships, Is.Not.Null); Assert.That(householdMemberData.UpgradeableMemberships, Is.Not.Empty); Assert.That(householdMemberData.UpgradeableMemberships.Count(), Is.EqualTo(2)); Assert.That(householdMemberData.UpgradeableMemberships.Contains("Deluxe"), Is.True); Assert.That(householdMemberData.UpgradeableMemberships.Contains("Premium"), Is.True); Assert.That(householdMemberData.Households, Is.Not.Null); Assert.That(householdMemberData.Households, Is.Empty); Assert.That(householdMemberData.Payments, Is.Not.Null); Assert.That(householdMemberData.Payments, Is.Empty); string householdMemberUpgradeMembershipToDeluxePaymentReference = Guid.NewGuid().ToString("D").ToUpper(); HouseholdMemberUpgradeMembershipCommand householdMemberUpgradeMembershipToDeluxeCommand = new HouseholdMemberUpgradeMembershipCommand { Membership = Membership.Deluxe.ToString(), DataProviderIdentifier = dataProviderWhoHandlesPaymentsIdentifier, PaymentTime = DateTime.Now, PaymentReference = householdMemberUpgradeMembershipToDeluxePaymentReference, PaymentReceipt = null }; ServiceReceiptResponse householdMemberUpgradeMembershipToDeluxe = _householdDataService.HouseholdMemberUpgradeMembership(householdMemberUpgradeMembershipToDeluxeCommand); Assert.That(householdMemberUpgradeMembershipToDeluxe, Is.Not.Null); Assert.That(householdMemberUpgradeMembershipToDeluxe.Identifier, Is.EqualTo(householdMemberIdentifier)); householdMemberData = _householdDataService.HouseholdMemberDataGet(householdMemberDataGetQuery); Assert.That(householdMemberData, Is.Not.Null); Assert.That(householdMemberData.Membership, Is.Not.Null); Assert.That(householdMemberData.Membership, Is.Not.Empty); Assert.That(householdMemberData.Membership, Is.EqualTo(Convert.ToString(Membership.Deluxe))); Assert.That(householdMemberData.MembershipExpireTime, Is.Not.Null); Assert.That(householdMemberData.MembershipExpireTime, Is.EqualTo(DateTime.Now.AddYears(1)).Within(5).Seconds); Assert.That(householdMemberData.CanRenewMembership, Is.True); Assert.That(householdMemberData.CanUpgradeMembership, Is.True); Assert.That(householdMemberData.CanCreateStorage, Is.True); Assert.That(householdMemberData.CanUpdateStorage, Is.True); Assert.That(householdMemberData.CanDeleteStorage, Is.True); Assert.That(householdMemberData.UpgradeableMemberships, Is.Not.Null); Assert.That(householdMemberData.UpgradeableMemberships, Is.Not.Empty); Assert.That(householdMemberData.UpgradeableMemberships.Count(), Is.EqualTo(1)); Assert.That(householdMemberData.UpgradeableMemberships.Contains("Premium"), Is.True); Assert.That(householdMemberData.Payments, Is.Not.Null); Assert.That(householdMemberData.Payments, Is.Not.Empty); PaymentView householdMemberUpgradeMembershipToDeluxePayment = householdMemberData.Payments.SingleOrDefault(m => string.Compare(m.PaymentReference, householdMemberUpgradeMembershipToDeluxePaymentReference, StringComparison.Ordinal) == 0); Assert.That(householdMemberUpgradeMembershipToDeluxePayment, Is.Not.Null); Assert.That(householdMemberUpgradeMembershipToDeluxePayment.PaymentIdentifier, Is.Not.EqualTo(default(Guid))); Assert.That(householdMemberUpgradeMembershipToDeluxePayment.Stakeholder, Is.Not.Null); Assert.That(householdMemberUpgradeMembershipToDeluxePayment.Stakeholder.StakeholderIdentifier, Is.EqualTo(householdMemberIdentifier)); Assert.That(householdMemberUpgradeMembershipToDeluxePayment.DataProvider, Is.Not.Null); Assert.That(householdMemberUpgradeMembershipToDeluxePayment.DataProvider.DataProviderIdentifier, Is.EqualTo(dataProviderWhoHandlesPaymentsIdentifier)); Assert.That(householdMemberUpgradeMembershipToDeluxePayment.PaymentTime, Is.EqualTo(DateTime.Now).Within(5).Seconds); Assert.That(householdMemberUpgradeMembershipToDeluxePayment.PaymentReference, Is.Not.Null); Assert.That(householdMemberUpgradeMembershipToDeluxePayment.PaymentReference, Is.Not.Empty); Assert.That(householdMemberUpgradeMembershipToDeluxePayment.PaymentReference, Is.EqualTo(householdMemberUpgradeMembershipToDeluxePaymentReference)); Assert.That(householdMemberUpgradeMembershipToDeluxePayment.PaymentReceipt, Is.Null); string householdMemberUpgradeMembershipToPremiumPaymentReference = Guid.NewGuid().ToString("D").ToUpper(); string householdMemberUpgradeMembershipToPremiumPaymentReceipt = Convert.ToBase64String(Services.TestHelper.GetTestDocument().ToArray()); HouseholdMemberUpgradeMembershipCommand householdMemberUpgradeMembershipToPremiumCommand = new HouseholdMemberUpgradeMembershipCommand { Membership = Membership.Premium.ToString(), DataProviderIdentifier = dataProviderWhoHandlesPaymentsIdentifier, PaymentTime = DateTime.Now, PaymentReference = householdMemberUpgradeMembershipToPremiumPaymentReference, PaymentReceipt = householdMemberUpgradeMembershipToPremiumPaymentReceipt }; ServiceReceiptResponse householdMemberUpgradeMembershipToPremium = _householdDataService.HouseholdMemberUpgradeMembership(householdMemberUpgradeMembershipToPremiumCommand); Assert.That(householdMemberUpgradeMembershipToPremium, Is.Not.Null); Assert.That(householdMemberUpgradeMembershipToPremium.Identifier, Is.EqualTo(householdMemberIdentifier)); householdMemberData = _householdDataService.HouseholdMemberDataGet(householdMemberDataGetQuery); Assert.That(householdMemberData, Is.Not.Null); Assert.That(householdMemberData.Membership, Is.Not.Null); Assert.That(householdMemberData.Membership, Is.Not.Empty); Assert.That(householdMemberData.Membership, Is.EqualTo(Convert.ToString(Membership.Premium))); Assert.That(householdMemberData.MembershipExpireTime, Is.Not.Null); Assert.That(householdMemberData.MembershipExpireTime, Is.EqualTo(DateTime.Now.AddYears(1)).Within(5).Seconds); Assert.That(householdMemberData.CanRenewMembership, Is.True); Assert.That(householdMemberData.CanUpgradeMembership, Is.False); Assert.That(householdMemberData.CanCreateStorage, Is.True); Assert.That(householdMemberData.CanUpdateStorage, Is.True); Assert.That(householdMemberData.CanDeleteStorage, Is.True); Assert.That(householdMemberData.UpgradeableMemberships, Is.Not.Null); Assert.That(householdMemberData.UpgradeableMemberships, Is.Empty); Assert.That(householdMemberData.Payments, Is.Not.Null); Assert.That(householdMemberData.Payments, Is.Not.Empty); PaymentView householdMemberUpgradeMembershipToPremiumPayment = householdMemberData.Payments.SingleOrDefault(m => string.Compare(m.PaymentReference, householdMemberUpgradeMembershipToPremiumPaymentReference, StringComparison.Ordinal) == 0); Assert.That(householdMemberUpgradeMembershipToPremiumPayment, Is.Not.Null); Assert.That(householdMemberUpgradeMembershipToPremiumPayment.PaymentIdentifier, Is.Not.EqualTo(default(Guid))); Assert.That(householdMemberUpgradeMembershipToPremiumPayment.Stakeholder, Is.Not.Null); Assert.That(householdMemberUpgradeMembershipToPremiumPayment.Stakeholder.StakeholderIdentifier, Is.EqualTo(householdMemberIdentifier)); Assert.That(householdMemberUpgradeMembershipToPremiumPayment.DataProvider, Is.Not.Null); Assert.That(householdMemberUpgradeMembershipToPremiumPayment.DataProvider.DataProviderIdentifier, Is.EqualTo(dataProviderWhoHandlesPaymentsIdentifier)); Assert.That(householdMemberUpgradeMembershipToPremiumPayment.PaymentTime, Is.EqualTo(DateTime.Now).Within(5).Seconds); Assert.That(householdMemberUpgradeMembershipToPremiumPayment.PaymentReference, Is.Not.Null); Assert.That(householdMemberUpgradeMembershipToPremiumPayment.PaymentReference, Is.Not.Empty); Assert.That(householdMemberUpgradeMembershipToPremiumPayment.PaymentReference, Is.EqualTo(householdMemberUpgradeMembershipToPremiumPaymentReference)); Assert.That(householdMemberUpgradeMembershipToPremiumPayment.PaymentReceipt, Is.Not.Null); Assert.That(householdMemberUpgradeMembershipToPremiumPayment.PaymentReceipt, Is.Not.Empty); Assert.That(householdMemberUpgradeMembershipToPremiumPayment.PaymentReceipt, Is.EqualTo(householdMemberUpgradeMembershipToPremiumPaymentReceipt)); HouseholdAddCommand householdAddCommand = new HouseholdAddCommand { Name = Guid.NewGuid().ToString("N"), Description = null, TranslationInfoIdentifier = translationInfoIdentifier }; ServiceReceiptResponse householdAddServiceReceipt1 = _householdDataService.HouseholdAdd(householdAddCommand); Assert.That(householdAddServiceReceipt1, Is.Not.Null); Assert.That(householdAddServiceReceipt1.Identifier, Is.Not.Null); Assert.That(householdAddServiceReceipt1.Identifier, Is.Not.EqualTo(default(Guid))); householdMemberData = _householdDataService.HouseholdMemberDataGet(householdMemberDataGetQuery); Assert.That(householdMemberData, Is.Not.Null); Assert.That(householdMemberData.Households, Is.Not.Null); Assert.That(householdMemberData.Households, Is.Not.Empty); Assert.That(householdMemberData.Households.Count(), Is.EqualTo(1)); Assert.That(householdMemberData.Households.SingleOrDefault(household => household.HouseholdIdentifier == householdAddServiceReceipt1.Identifier.Value), Is.Not.Null); householdAddCommand = new HouseholdAddCommand { Name = Guid.NewGuid().ToString("N"), Description = Guid.NewGuid().ToString("N"), TranslationInfoIdentifier = translationInfoIdentifier }; ServiceReceiptResponse householdAddServiceReceipt2 = _householdDataService.HouseholdAdd(householdAddCommand); Assert.That(householdAddServiceReceipt2, Is.Not.Null); Assert.That(householdAddServiceReceipt2.Identifier, Is.Not.Null); Assert.That(householdAddServiceReceipt2.Identifier.Value, Is.Not.EqualTo(default(Guid))); householdMemberData = _householdDataService.HouseholdMemberDataGet(householdMemberDataGetQuery); Assert.That(householdMemberData, Is.Not.Null); Assert.That(householdMemberData.Households, Is.Not.Null); Assert.That(householdMemberData.Households, Is.Not.Empty); Assert.That(householdMemberData.Households.Count(), Is.EqualTo(2)); Assert.That(householdMemberData.Households.SingleOrDefault(household => household.HouseholdIdentifier == householdAddServiceReceipt2.Identifier.Value), Is.Not.Null); } finally { _householdDataRepository.Delete(_householdDataRepository.Get <IHouseholdMember>(householdMemberIdentifier)); } } }
protected void BillingAddressEditModel_AddressChanged(object sender, AddressChangedEventArgs addressChanged) { PaymentView.NotifyOrderDetailsChanged(); }
public async Task Save(PaymentView payment) { var entity = _mapper.Map <PaymentEntity>(payment); await _azTableHelper.InsertOrMerge(_table, entity); }
protected void NextClick(object sender, EventArgs e) { if (CurrentDiv != ActiveDiv.Final) { switch (CurrentDiv) { case ActiveDiv.TrialSelect: if (TrialSelectView.IsExpressInstall()) { GoShopClick(sender, e); } break; case ActiveDiv.Shopinfo: if (!ShopinfoView.Validate()) { return; } ShopinfoView.SaveData(); if (!(Demo.IsDemoEnabled || TrialService.IsTrialEnabled || SaasDataService.IsSaasEnabled)) { if (!ShopinfoView.ActiveLic) { ShopinfoView.LoadData(); return; } } break; case ActiveDiv.Finance: if (!FinanceView.Validate()) { return; } FinanceView.SaveData(); break; case ActiveDiv.Payment: if (!PaymentView.Validate()) { return; } PaymentView.SaveData(); break; case ActiveDiv.Shipping: if (!ShippingView.Validate()) { return; } ShippingView.SaveData(); break; case ActiveDiv.OpenidParagraf: if (!OpenidParagrafView.Validate()) { return; } OpenidParagrafView.SaveData(); break; case ActiveDiv.NotifyParagraf: if (!NotifyParagrafView.Validate()) { return; } NotifyParagrafView.SaveData(); break; case ActiveDiv.Final: return; } var temp = (int)CurrentDiv; temp++; Response.Redirect(UrlService.GetAbsoluteLink("install/default.aspx") + "?step=" + ((ActiveDiv)temp).ToString()); } }
public override void LoadView() { View = new PaymentView(); }