/// <summary> /// Книга по чл. 634в от ТЗ /// </summary> /// <returns></returns> public IActionResult InsolvencyReport() { ViewBag.CaseGroupId_ddl = nomService.GetDropDownList <CaseGroup>().Where(x => x.Value == NomenclatureConstants.CaseGroups.GrajdanskoDelo.ToString() || x.Value == NomenclatureConstants.CaseGroups.Trade.ToString() || x.Value == "-1" || x.Value == "-2").ToList(); var model = new InsolvencyFilterReportVM(); model.DateFrom = new DateTime(DateTime.Now.Year, 1, 1); model.DateTo = DateTime.Now; return(View(model)); }
public IActionResult InsolvencyReport(InsolvencyFilterReportVM model) { var xlsBytes = service.InsolvencyReportToExcelOne(model); return(File(xlsBytes, System.Net.Mime.MediaTypeNames.Application.Rtf, "Spravka.xlsx")); }