Exemple #1
0
        public ActionResult Index()
        {
            UserPayments model    = new UserPayments();
            var          user     = _orchardServices.WorkContext.CurrentUser;
            int          userId   = -1; // valore che non corrisponde a nessun utente: se non sei autenticato non vedi nulla
            string       userName = "";

            if (user != null)
            {
                userId   = user.Id;
                userName = user.UserName;
            }
            model.Records  = _paymentService.GetPayments(userId);
            model.UserName = userName;
            return(View("Index", model));
        }
 private void linkLabel_userPayment_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     UserPayments userPayments = new UserPayments();
     userPayments.Show();
 }
Exemple #3
0
 private void linkLabel_userPayments_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     UserPayments userPayments = new UserPayments();
     userPayments.setCustomerId(selectedCustomerId);
     userPayments.Show();
 }
 private void linkLabel_newPayment_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     UserPayments userPayment = new UserPayments();
     userPayment.setFlatId(selectedFlatId);
     userPayment.Show();
 }