|
|
|
|
@ -209,8 +209,15 @@ class ReportListWidget extends StatelessWidget {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(AppGlobal.context);
|
|
|
|
|
ReportsService _reportsService = locator<ReportsService>();
|
|
|
|
|
_reportsService
|
|
|
|
|
.getMedicalReportPDF(report.projectName!, report.clinicDescription!, report.doctorName, DateUtil.convertDateToString(report.requestDate!), report.invoiceNo.toString(), report.projectID!,
|
|
|
|
|
DateUtil.convertDateToString(report.requestDate!), report.setupId!)
|
|
|
|
|
.getMedicalReportPDF(
|
|
|
|
|
report.projectName!,
|
|
|
|
|
report.clinicDescription!,
|
|
|
|
|
report.doctorName,
|
|
|
|
|
DateUtil.convertDateToString(report.requestDate!),
|
|
|
|
|
(Utils.isVidaPlusProject(projectViewModel, report.projectID!) ? report.invoiceNo_VP.toString() : report.invoiceNo.toString()),
|
|
|
|
|
report.projectID!,
|
|
|
|
|
DateUtil.convertDateToString(report.requestDate!),
|
|
|
|
|
report.setupId!)
|
|
|
|
|
.then((value) async {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(AppGlobal.context);
|
|
|
|
|
String path = await _createFileFromString(value["MedicalReportBase64"], "pdf");
|
|
|
|
|
|