|
|
|
|
@ -9,11 +9,12 @@ import 'package:diplomaticquarterapp/core/service/base_service.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/app_toast.dart';
|
|
|
|
|
|
|
|
|
|
class LabsService extends BaseService {
|
|
|
|
|
RequestPatientLabOrders _requestPatientLabOrders = RequestPatientLabOrders();
|
|
|
|
|
List<PatientLabOrders> patientLabOrdersList = List();
|
|
|
|
|
|
|
|
|
|
Future getPatientLabOrdersList() async {
|
|
|
|
|
hasError = false;
|
|
|
|
|
Map<String,dynamic> body = Map();
|
|
|
|
|
body['isDentalAllowedBackend'] = false;
|
|
|
|
|
await baseAppClient.post(GET_Patient_LAB_ORDERS,
|
|
|
|
|
onSuccess: (dynamic response, int statusCode) {
|
|
|
|
|
patientLabOrdersList.clear();
|
|
|
|
|
@ -23,7 +24,7 @@ class LabsService extends BaseService {
|
|
|
|
|
}, onFailure: (String error, int statusCode) {
|
|
|
|
|
hasError = true;
|
|
|
|
|
super.error = error;
|
|
|
|
|
}, body: _requestPatientLabOrders.toJson());
|
|
|
|
|
}, body: body);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
RequestPatientLabSpecialResult _requestPatientLabSpecialResult =
|
|
|
|
|
@ -60,7 +61,8 @@ class LabsService extends BaseService {
|
|
|
|
|
Map<String, dynamic> body = Map();
|
|
|
|
|
body['InvoiceNo'] = patientLabOrder.invoiceNo;
|
|
|
|
|
body['OrderNo'] = patientLabOrder.orderNo;
|
|
|
|
|
body['Procedure'] = "U/A";
|
|
|
|
|
body['isDentalAllowedBackend'] = false;
|
|
|
|
|
body['SetupID'] = patientLabOrder.setupID;
|
|
|
|
|
body['ProjectID'] = patientLabOrder.projectID;
|
|
|
|
|
body['ClinicID'] = patientLabOrder.clinicID;
|
|
|
|
|
//TODO Check the res
|
|
|
|
|
|