public ActionResult SearchCoolBrotherActivityStat(SearchCoolBrotherActivityStatModel searchModel) { var currentDateTime = DateTime.Now; var currentStartMonth = currentDateTime.AddDays(1 - currentDateTime.Day).Date; //本月月初 var currentEndMonth = currentStartMonth.AddMonths(1).AddDays(-1).Date.AddDays(1).AddSeconds(-1); //本月月末 searchModel.SearchDate = searchModel.SearchDate ?? currentStartMonth; return PartialView("_CoolBrotherActivityStatList", CBReportBLL.GetCoolBrotherActivity(searchModel.BranchId, searchModel.SearchDate.Value)); }
public ActionResult CoolBrotherActivityStat(SearchCoolBrotherActivityStatModel searchModel) { return View("CoolBrotherActivityStat", new SearchCoolBrotherActivityStatModel() { SearchDate=DateTime.Now.Date}); }