public ActionResult SAEfficiencyTotal(SearchSAEfficiencyTotalModel searchModel) { return View("SAEfficiencyTotal", new SearchSAEfficiencyTotalModel() { SearchDate = DateTime.Now.Date }); }
/// <summary> /// 作者:Kylin /// 时间:2014.08.04 /// 描述:获取Area SA效率分析统计报表数据集 /// </summary> /// <param name="searchModel"></param> /// <returns></returns> public ActionResult SearchSAEfficiencyTotal(SearchSAEfficiencyTotalModel searchModel) { searchModel.SearchDate = searchModel.SearchDate ?? new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); return PartialView("_SAEfficiencyList", ReportBLL.GetSAEfficiencyTotal(searchModel.BranchId, searchModel.SearchDate.Value)); }
public ActionResult ExportSAEfficiencyTotal(int branchId, DateTime? searchDate) { searchDate = searchDate ?? new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); Session["ExportSAEfficiencyTotal"] = string.Format("{0}{1}SA效率分析", BranchCache.GetBranchCacheById(branchId).EName, searchDate.Value.ToString("yy-MM-dd")); var searchModel = new SearchSAEfficiencyTotalModel() { BranchId = branchId, SearchDate = searchDate }; if (searchModel.SearchDate != null) { return PartialView("_SAEfficiencyList", ReportBLL.GetSAEfficiencyTotal(searchModel.BranchId, searchModel.SearchDate.Value)); } return PartialView("_SAEfficiencyList"); }