コード例 #1
0
 public ActionResult ContributionSearch(ContributionSearchInfo m, int? page)
 {
     var ret = AuthenticateDeveloper(addrole: "Finance");
     if (ret.StartsWith("!"))
         return Content(@"<Contributions status=""error"">" + ret.Substring(1) + "</Contributions>");
     DbUtil.LogActivity("APIContribution ContributionSearch");
     return Content(new APIContributionSearchModel(DbUtil.Db, m).ContributionsXML(((page ?? 1) -1) * 100, 100), "text/xml");
 }
コード例 #2
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);
 }
コード例 #3
0
 public ContributionSearchModel(ContributionSearchInfo m)
 {
     api = new APIContributionSearchModel(DbUtil.Db, m);
     Setup();
 }
コード例 #4
0
 public APIContributionSearchModel(CMSDataContext db)
 {
     this.db = db;
     model = new ContributionSearchInfo();
 }
コード例 #5
0
 public APIContributionSearchModel(CMSDataContext db, ContributionSearchInfo m)
 {
     this.db = db;
     model = m;
 }
コード例 #6
0
 public APIContributionSearchModel(CMSDataContext db)
 {
     this.db = db;
     model   = new ContributionSearchInfo();
 }
コード例 #7
0
 public APIContributionSearchModel(CMSDataContext db, ContributionSearchInfo m)
 {
     this.db = db;
     model   = m;
 }