Dev_3.3_MedicalReportCR
haroon amjad 2 years ago
parent 34d3cf2945
commit 14928ad833

@ -26,6 +26,7 @@ class RequestSendLabReportEmail {
String orderDate;
String orderNo;
bool isDownload;
int doctorID;
RequestSendLabReportEmail(
{this.versionID,
@ -54,7 +55,8 @@ class RequestSendLabReportEmail {
this.invoiceNo,
this.orderDate,
this.orderNo,
this.isDownload});
this.isDownload,
this.doctorID});
RequestSendLabReportEmail.fromJson(Map<String, dynamic> json) {
versionID = json['VersionID'];
@ -84,6 +86,7 @@ class RequestSendLabReportEmail {
orderDate = json['OrderDate'];
orderNo = json['OrderNo'];
isDownload = json['IsDownload'];
doctorID = json['DoctorID'];
}
Map<String, dynamic> toJson() {
@ -115,6 +118,7 @@ class RequestSendLabReportEmail {
data['OrderDate'] = this.orderDate;
data['OrderNo'] = this.orderNo;
data['IsDownload'] = this.isDownload;
data['DoctorID'] = this.doctorID;
return data;
}
}

@ -209,6 +209,7 @@ class LabsService extends BaseService {
_requestSendLabReportEmail.setupID = patientLabOrder.setupID;
_requestSendLabReportEmail.orderNo = patientLabOrder.orderNo;
_requestSendLabReportEmail.isDownload = isDownload;
_requestSendLabReportEmail.doctorID = patientLabOrder.doctorID;
await baseAppClient.post(SEND_LAB_RESULT_EMAIL, onSuccess: (dynamic response, int statusCode) {}, onFailure: (String error, int statusCode) {
hasError = true;

@ -136,7 +136,7 @@ class LabsViewModel extends BaseViewModel {
}
sendLabReportEmail({PatientLabOrders patientLabOrder, String mes, AuthenticatedUser userObj, bool isDownload = false}) async {
await _labsService.sendLabReportEmail(patientLabOrder: patientLabOrder, userObj: userObj);
await _labsService.sendLabReportEmail(patientLabOrder: patientLabOrder, userObj: userObj, isDownload: true);
if (_labsService.hasError) {
error = _labsService.error;
} else

@ -59,12 +59,15 @@ class _LaboratoryResultPageState extends State<LaboratoryResultPage> {
),
itemCount: 1,
),
SizedBox(
height: 120.0,
)
],
),
),
bottomSheet: Container(
color: Colors.white,
height: MediaQuery.of(context).size.height * 0.08,
height: MediaQuery.of(context).size.height * 0.081,
width: double.infinity,
padding: EdgeInsets.all(12.0),
child: Column(

Loading…
Cancel
Save