Пример #1
0
 public ActionResult Results(ContributionSearchModel m)
 {
     var ret = m.CheckConversion();
     if(ret.HasValue())
         return Content(ret);
     return View(m);
 }
Пример #2
0
        public ActionResult Results(ContributionSearchModel m)
        {
            var ret = m.CheckConversion();

            if (ret.HasValue())
            {
                return(Content(ret));
            }
            return(View(m));
        }
Пример #3
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(api);
     return View(m);
 }
Пример #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));
        }
Пример #5
0
 public ActionResult Reverse(int id, ContributionSearchModel m)
 {
     m.Reverse(id);
     return RedirectToAction("Index", new { id = m.SearchInfo.PeopleId, m.SearchInfo.Year });
 }
Пример #6
0
 public ActionResult Results(ContributionSearchModel m)
 {
     return View(m);
 }
Пример #7
0
 public ActionResult Export(ContributionSearchModel m)
 {
     return new ExcelResult(m.ContributionsListAll(), "contributions.xls");
 }
Пример #8
0
 public ActionResult Reverse(int id, ContributionSearchModel m)
 {
     m.Reverse(id);
     return(RedirectToAction("Index", new { id = m.SearchInfo.PeopleId, m.SearchInfo.Year }));
 }
Пример #9
0
 public ActionResult Export(ContributionSearchModel m)
 {
     return(m.ContributionsListAllExcel());
 }
Пример #10
0
 public ActionResult Export(ContributionSearchModel m)
 {
     return m.ContributionsListAllExcel();
 }
Пример #11
0
 public ActionResult Results(ContributionSearchModel m)
 {
     return(View(m));
 }