/// <summary> /// Справка за заседания /// </summary> /// <returns></returns> public IActionResult Index_Spr() { ViewBag.CaseGroupId_ddl = nomService.GetDropDownList <CaseGroup>(); ViewBag.HallId_ddl = commonService.GetDropDownList_CourtHall(userContext.CourtId); ViewBag.CaseSessionTypeId_ddl = nomService.GetDropDownList <SessionType>(); ViewBag.SessionResultId_ddl = nomService.GetDropDownList <SessionResult>(); ViewBag.SessionStateId_ddl = nomService.GetDropDownList <SessionState>(); ViewBag.CourtDepartmentId_ddl = courtDepartmentService.Department_SelectDDL(userContext.CourtId, NomenclatureConstants.DepartmentType.Systav); SetHelpFile(HelpFileValues.CourtHearings); CaseSessionFilterVM filter = new CaseSessionFilterVM(); return(View(filter)); }
/// <summary> /// Справка за заседания /// </summary> /// <returns></returns> public IActionResult Index_Spr() { ViewBag.CaseGroupIds_ddl = nomService.GetDropDownList <CaseGroup>(false); ViewBag.HallId_ddl = commonService.GetDropDownList_CourtHall(userContext.CourtId); ViewBag.CaseSessionTypeId_ddl = nomService.GetDropDownList <SessionType>(); ViewBag.SessionResultId_ddl = nomService.GetDropDownList <SessionResult>(); ViewBag.SessionStateId_ddl = nomService.GetDropDownList <SessionState>(); ViewBag.CourtDepartmentId_ddl = courtDepartmentService.Department_SelectDDL(userContext.CourtId, NomenclatureConstants.DepartmentType.Systav); ViewBag.CourtDepartmentOtdelenieId_ddl = courtDepartmentService.Department_SelectDDL(userContext.CourtId, NomenclatureConstants.DepartmentType.Otdelenie); SetHelpFile(HelpFileValues.CourtHearings); CaseSessionFilterVM filter = new CaseSessionFilterVM(); //filter.Year = DateTime.Now.Year; filter.DateFrom = new DateTime(DateTime.Now.Year, 1, 1).ForceStartDate(); filter.DateTo = new DateTime(DateTime.Now.Year, 12, 31).ForceEndDate(); return(View(filter)); }
public IActionResult ListDataSprExportExcel(CaseSessionFilterVM model) { var xlsBytes = service.ListDataSprExportExcel(model); return(File(xlsBytes, System.Net.Mime.MediaTypeNames.Application.Rtf, "SessionReport.xlsx")); }
public IActionResult ListDataSpr(IDataTablesRequest request, CaseSessionFilterVM model) { var data = service.CaseSessionSpr_Select(model); return(request.GetResponse(data)); }