public ActionResult MOHHBVReport()
        {
            var vm = new InfectionControlVM();

            vm.FromDate = DateTime.Now;
            vm.ToDate   = DateTime.Now;
            return(View(vm));
        }
        public ActionResult MOHHBVReport(InfectionControlVM param)
        {
            var data = InfectDB.MOHHBVReport(param.FromDate.ToString(), param.ToDate.ToString());

            ReportViewer reportViewer = new ReportViewer();

            reportViewer.ProcessingMode = ProcessingMode.Local;

            reportViewer.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"\Areas\ManagementReports\Reports\InfectionControl\HepaStatisticsMOH.rdl";
            reportViewer.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", data));
            reportViewer.LocalReport.SetParameters(new ReportParameter("stDate", param.FromDate.ToString()));
            reportViewer.LocalReport.SetParameters(new ReportParameter("enDate", param.ToDate.ToString()));
            // reportViewer.LocalReport.SetParameters(new ReportParameter("IcdId", param.Diagnosis.ToString()));
            //reportViewer.LocalReport.SetParameters(new ReportParameter("DayCount", param.LengthOfStay.ToString()));
            reportViewer.LocalReport.DisplayName = base.SaveFilestreamtoPDF(reportViewer);
            ViewBag.ReportViewer = reportViewer;

            return(View(param));
        }