コード例 #1
0
        public ActionResult Index(PaymentListViewModel model, string message = "")
        {
            ViewBag.ErrorMessage = message;
            SessionHelper.Payment = null;
            model.SOBId = SessionHelper.SOBId;

            return View(model);
        }
コード例 #2
0
        public static PaymentListViewModel GetPayments(long sobId, long bankId, long vendorId, long periodId)
        {
            PaymentListViewModel model = new PaymentListViewModel();
            model.Payments = service.GetAll(AuthenticationHelper.CompanyId.Value, vendorId, bankId, sobId, periodId).ToList()
                .Select(x => new PaymentViewModel(x)).ToList();

            return model;
        }
コード例 #3
0
 public ActionResult PaymentPartial(PaymentListViewModel model)
 {
     return PartialView("_List", PaymentHelper.GetPayments(SessionHelper.SOBId, model.BankId, model.VendorId, model.PeriodId));
 }