fix load report error

This commit is contained in:
Bright 2024-09-25 16:05:59 +07:00
parent 4654330ef7
commit aa0f00385a

View file

@ -359,7 +359,7 @@ namespace BMA.EHR.Report.Service.Controllers
{
report = (Telerik.Reporting.Report)reportPackager.UnpackageDocument(sourceStream);
}
report.ReportParameters["ExamName"].Value = data[0].ExamName;
report.DataSource = data[0];
var table = (Telerik.Reporting.Table)report.Items["detailSection1"].Items["table1"];
table.DataSource = data;
@ -545,7 +545,7 @@ namespace BMA.EHR.Report.Service.Controllers
{
report = (Telerik.Reporting.Report)reportPackager.UnpackageDocument(sourceStream);
}
report.ReportParameters["ExamName"].Value = data[0].ExamName;
report.DataSource = data[0];
var table = (Telerik.Reporting.Table)report.Items["detailSection1"].Items["table1"];
table.DataSource = data;