示例#1
0
 public ActionResult DecisionsToQuery(string command, string key, int? campus, DateTime? dt1, DateTime? dt2)
 {
     string r = new DecisionSummaryModel(dt1, dt2) { Campus = campus }.ConvertToSearch(command, key);
     return Redirect(r);
 }
示例#2
0
 public ActionResult DecisionsToQuery(string command, string key, int? campus, string dt1, string dt2)
 {
     var d1 = dt1.ToDate();
     var d2 = dt2.ToDate();
     var r = new DecisionSummaryModel(d1, d2) { Campus = campus }.ConvertToSearch(command, key);
     return Redirect(r);
 }
示例#3
0
 public ActionResult Decisions(int? campus, DateTime? dt1, DateTime? dt2)
 {
     DateTime today = Util.Now.Date;
     if (!dt1.HasValue)
         dt1 = new DateTime(today.Year, 1, 1);
     if (!dt2.HasValue)
         dt2 = today;
     var m = new DecisionSummaryModel(dt1, dt2) { Campus = campus };
     return View(m);
 }
示例#4
0
 public ActionResult Decisions(int? campus, string dt1, string dt2)
 {
     DateTime today = Util.Now.Date;
     var d1 = dt1.ToDate();
     var d2 = dt2.ToDate();
     if (!d1.HasValue)
         d1 = new DateTime(today.Year, 1, 1);
     if (!d2.HasValue)
         d2 = today;
     var m = new DecisionSummaryModel(d1, d2) { Campus = campus };
     return View(m);
 }