public ActionResult Results(ContributionSearchModel m)
 {
     var ret = m.CheckConversion();
     if(ret.HasValue())
         return Content(ret);
     return View(m);
 }
        public ActionResult Results(ContributionSearchModel m)
        {
            var ret = m.CheckConversion();

            if (ret.HasValue())
            {
                return(Content(ret));
            }
            return(View(m));
        }
 public ActionResult BundleTotals(int? fundId, DateTime? dt1, DateTime? dt2, int? campus, int? bundletype, 
     bool? includeunclosedbundles = true, int online = 2, string taxnontax = "TaxDed")
 {
     var api = new ContributionSearchInfo()
     {
         FundId = fundId,
         StartDate = dt1,
         EndDate = dt2,
         CampusId = campus,
         Online = online,
         TaxNonTax = taxnontax,
         IncludeUnclosedBundles = includeunclosedbundles ?? false,
         BundleType = bundletype
     };
     var m = new ContributionSearchModel(api);
     return View(m);
 }
Beispiel #4
0
        public ActionResult BundleTotals(int?fundId, DateTime?dt1, DateTime?dt2, int?campus, int?bundletype,
                                         bool?includeunclosedbundles = true, int online = 2, string taxnontax = "TaxDed")
        {
            var api = new ContributionSearchInfo()
            {
                FundId    = fundId,
                StartDate = dt1,
                EndDate   = dt2,
                CampusId  = campus,
                Online    = online,
                TaxNonTax = taxnontax,
                IncludeUnclosedBundles = includeunclosedbundles ?? false,
                BundleType             = bundletype
            };
            var m = new ContributionSearchModel(CurrentDatabase, api);

            return(View(m));
        }
 public ActionResult Reverse(int id, ContributionSearchModel m)
 {
     m.Reverse(id);
     return RedirectToAction("Index", new { id = m.SearchInfo.PeopleId, m.SearchInfo.Year });
 }
 public ActionResult Results(ContributionSearchModel m)
 {
     return View(m);
 }
 public ActionResult Export(ContributionSearchModel m)
 {
     return new ExcelResult(m.ContributionsListAll(), "contributions.xls");
 }
Beispiel #8
0
 public ActionResult Reverse(int id, ContributionSearchModel m)
 {
     m.Reverse(id);
     return(RedirectToAction("Index", new { id = m.SearchInfo.PeopleId, m.SearchInfo.Year }));
 }
Beispiel #9
0
 public ActionResult Export(ContributionSearchModel m)
 {
     return(m.ContributionsListAllExcel());
 }
 public ActionResult Export(ContributionSearchModel m)
 {
     return m.ContributionsListAllExcel();
 }
Beispiel #11
0
 public ActionResult Results(ContributionSearchModel m)
 {
     return(View(m));
 }