Example #1
0
        //[MiddlewareFilter(typeof(JsReportPipeline))]
        public async Task <IActionResult> OrderPeriodDetailReportWithGroup(DateTime?datefrom, DateTime?dateto, string format, int?userSubGroupId)
        {
            SelectFormat(format);
            datefrom       = datefrom.SetDefaultIfNotSet(DateTime.Now);
            dateto         = dateto.SetDefaultIfNotSet(DateTime.Now);
            userSubGroupId = _companyRep.GetUserSubGroupId(User.GetUserId());
            var model = await _reportrepo.GetOrderPeriodDetailReportWithGroup(datefrom.Value, dateto.Value, User.GetCompanyID(), userSubGroupId);

            return(PartialView(model));
        }