/// <summary> /// 作者:Kylin /// 时间:2014.08.13 /// 描述:获取中心资源利用率统计报表数据集 /// </summary> /// <param name="searchModel"></param> /// <returns></returns> public ActionResult SearchResourceUsageStat(SearchResourceUsageStatModel 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.BeginDate = searchModel.BeginDate ?? currentStartMonth; searchModel.EndDate = searchModel.EndDate ?? currentEndMonth; return PartialView("_ResourceUsageStatList", ReportBLL.GetResourceUsage(searchModel.BranchId, searchModel.BeginDate.Value, searchModel.EndDate.Value)); }
public ActionResult ResourceUsageStat(SearchResourceUsageStatModel searchModel) { return View("ResourceUsageStat"); }