Exemplo n.º 1
0
        /// <summary>
        /// Разносна книга
        /// </summary>
        /// <returns></returns>
        public IActionResult DeliveryBookReport()
        {
            ViewBag.CaseGroupId_ddl = nomService.GetDropDownList <CaseGroup>();

            var model = new DeliveryBookFilterVM();

            model.DateFrom = new DateTime(DateTime.Now.Year, 1, 1);
            model.DateTo   = DateTime.Now;

            return(View(model));
        }
Exemplo n.º 2
0
        public IActionResult DeliveryBookReport(DeliveryBookFilterVM model)
        {
            var xlsBytes = service.DeliveryBookReportToExcelOne(model);

            return(File(xlsBytes, System.Net.Mime.MediaTypeNames.Application.Rtf, "Spravka.xlsx"));
        }