|
|
|
@ -58,7 +58,7 @@ class _LaboratoryResultPageState extends State<LaboratoryResultPage> {
|
|
|
|
|
itemBuilder: (context, index) => LaboratoryResultWidget(
|
|
|
|
|
onTap: () async {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
await model.sendLabReportEmail(patientLabOrder: widget.patientLabOrders, mes: TranslationBase.of(context).sendSuc, userObj: projectViewModel.user);
|
|
|
|
|
await model.sendLabReportEmail(patientLabOrder: widget.patientLabOrders, mes: TranslationBase.of(context).sendSuc, userObj: projectViewModel.user, isVidaPlus: Utils.isVidaPlusProject(projectViewModel, num.parse(widget.patientLabOrders.projectID)));
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
},
|
|
|
|
|
billNo: widget.patientLabOrders.invoiceNo,
|
|
|
|
@ -88,7 +88,7 @@ class _LaboratoryResultPageState extends State<LaboratoryResultPage> {
|
|
|
|
|
TranslationBase.of(context).downloadReport,
|
|
|
|
|
() async {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
await model.sendLabReportEmail(patientLabOrder: widget.patientLabOrders, mes: TranslationBase.of(context).sendSuc, userObj: projectViewModel.user, isDownload: true);
|
|
|
|
|
await model.sendLabReportEmail(patientLabOrder: widget.patientLabOrders, mes: TranslationBase.of(context).sendSuc, userObj: projectViewModel.user, isVidaPlus: Utils.isVidaPlusProject(projectViewModel, num.parse(widget.patientLabOrders.projectID)), isDownload: true);
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
try {
|
|
|
|
|
String path = await _createFileFromString(model.labReportPDF, "pdf");
|
|
|
|
|