Пример #1
0
 //  [MiddlewareFilter(typeof(JsReportPipeline))]
 public IActionResult CompanyDayProductionWithoutIngredients(DateTime datefrom, DateTime dateto, string format)
 {
     if (datefrom.Ticks == 0)
     {
         datefrom = DateTime.Today;
     }
     if (dateto.Ticks == 0)
     {
         dateto = DateTime.Today.AddDays(3);
     }
     datefrom             = datefrom.ResetHMS();
     dateto               = dateto.ResetHMS();
     ViewData["datefrom"] = datefrom;
     ViewData["dateto"]   = dateto;
     SelectFormat(format);
     return(View(_reportrepo.CompanyDayProductionWithoutIngredients(datefrom, dateto, User.GetCompanyID())));
 }