/// <summary> /// Книга за закрити заседания /// </summary> /// <returns></returns> public IActionResult CaseSessionPrivateReport() { ViewBag.CaseGroupId_ddl = nomService.GetDropDownList <CaseGroup>(); ViewBag.DepartmentId_ddl = departmentService.Department_SelectDDL(userContext.CourtId, NomenclatureConstants.DepartmentType.Systav); var model = new CaseSessionPrivateFilterReportVM(); model.DateFrom = NomenclatureExtensions.ForceStartDate(new DateTime(DateTime.Now.Year, 1, 1)); model.DateTo = NomenclatureExtensions.ForceEndDate(DateTime.Now); return(View(model)); }
public IActionResult CaseSessionPrivateReport(CaseSessionPrivateFilterReportVM model) { var xlsBytes = service.CaseSessionPrivateReportToExcelOneTemplate(model); return(File(xlsBytes, System.Net.Mime.MediaTypeNames.Application.Rtf, "Spravka.xlsx")); }