merge-update-with-lab-changes
haroon amjad 1 year ago
parent e66e42edda
commit 8b74c9df61

@ -187,7 +187,7 @@ class BaseAppClient {
// body['IdentificationNo'] = 1023854217; // body['IdentificationNo'] = 1023854217;
// body['MobileNo'] = "531940021"; //0560717232 // body['MobileNo'] = "531940021"; //0560717232
// body['PatientID'] = 4769527; //4609100 // body['PatientID'] = 2007395; //4609100
// body['TokenID'] = "@dm!n"; // body['TokenID'] = "@dm!n";
// Patient ID: 3027574 // Patient ID: 3027574

@ -231,7 +231,7 @@ class LabsService extends BaseService {
_requestSendLabReportEmail.languageID = languageID; _requestSendLabReportEmail.languageID = languageID;
// await baseAppClient.post(SEND_LAB_RESULT_EMAIL, onSuccess: (dynamic response, int statusCode) { // await baseAppClient.post(SEND_LAB_RESULT_EMAIL, onSuccess: (dynamic response, int statusCode) {
await baseAppClient.post(SEND_LAB_RESULT_EMAIL_NEW, onSuccess: (dynamic response, int statusCode) { await baseAppClient.post(isVidaPlus ? SEND_LAB_RESULT_EMAIL : SEND_LAB_RESULT_EMAIL_NEW, onSuccess: (dynamic response, int statusCode) {
if (isDownload) { if (isDownload) {
labReportPDF = response['PdfContent']; labReportPDF = response['PdfContent'];
} }

@ -108,17 +108,22 @@ class AskDoctorPage extends StatelessWidget {
); );
} }
Future<bool> checkIfDoctorAvailable(DoctorList _doctor, BuildContext context) { Future<bool> checkIfDoctorAvailable(DoctorList _doctor, BuildContext context) async {
AskDoctorService askDocservice = new AskDoctorService();
bool isAvailable = false; bool isAvailable = false;
GifLoaderDialogUtils.showMyDialog(context); GifLoaderDialogUtils.showMyDialog(context);
service.isDoctorAvailable(doctorId: _doctor.doctorID, projectId: _doctor.projectID, clinicId: _doctor.clinicID).then((res) { await askDocservice.isDoctorAvailable(doctorId: _doctor.doctorID, projectId: _doctor.projectID, clinicId: _doctor.clinicID).then((res) {
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);
print(res['IsDoctorAvailable']); if (res != null) {
if (res['IsDoctorAvailable']) { print(res['IsDoctorAvailable']);
isAvailable = true; if (res['IsDoctorAvailable']) {
isAvailable = true;
} else {
isAvailable = false;
AppToast.showErrorToast(message: res['endUserMessage'], localContext: context);
}
} else { } else {
isAvailable = false; isAvailable = true;
AppToast.showErrorToast(message: res['endUserMessage'], localContext: context);
} }
}).catchError((err) { }).catchError((err) {
GifLoaderDialogUtils.hideDialog(context); GifLoaderDialogUtils.hideDialog(context);

@ -67,7 +67,7 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
widget.patientLabOrder!.actualDoctorRate!, widget.patientLabOrder!.actualDoctorRate!,
widget.patientLabOrder!.noOfPatientsRate!, widget.patientLabOrder!.noOfPatientsRate!,
projectViewModel.user.emailAddress!), projectViewModel.user.emailAddress!),
buttonTitle: TranslationBase.of(context).downloadReport, buttonTitle: TranslationBase.of(context).download,
buttonIcon: "assets/images/new/download_1.svg", buttonIcon: "assets/images/new/download_1.svg",
showConfirmMessageDialog: false, showConfirmMessageDialog: false,
isDownload: true, isDownload: true,

Loading…
Cancel
Save