child Vaccines

merge-update-with-lab-changes
Amjad amireh 5 years ago
parent 9ab0d66888
commit 0e4ff1f804

@ -1,29 +1,30 @@
import 'package:diplomaticquarterapp/core/model/childvaccines/List_BabyInformationModel.dart'; import 'package:diplomaticquarterapp/core/model/childvaccines/List_BabyInformationModel.dart';
import 'package:diplomaticquarterapp/config/config.dart'; import 'package:diplomaticquarterapp/config/config.dart';
import 'package:diplomaticquarterapp/core/model/childvaccines/user_information_model.dart';
import '../base_service.dart'; import '../base_service.dart';
class ChildVaccinesService extends BaseService{ class ChildVaccinesService extends BaseService {
List<List_BabyInformationModel> babyInformationModelList = List();
List<List_BabyInformationModel> BabyInformationModelList = List(); List<List_UserInformationModel> userInformationModelList = List();
Map<String, dynamic> body = Map(); Map<String, dynamic> body = Map();
Future getAllBabyInformationOrders() async { Future getAllBabyInformationOrders() async {
hasError = false; hasError = false;
body['List_BabyInformationModel'] = false; body['isDentalAllowedBackend'] = false;
body['IsLogin'] = true;
//body['UserID'] = babyInformationModelList[0].userID;
await baseAppClient.post(GET_BABYINFORMATION_REQUEST, body['UserID'] = 42843;
onSuccess: (dynamic response, int statusCode) {
BabyInformationModelList.clear();
await baseAppClient.post(GET_BABYINFORMATION_REQUEST,
response['List_BabyInformationModel'].forEach((vital) { onSuccess: (dynamic response, int statusCode) {
babyInformationModelList.clear();
BabyInformationModelList.add(List_BabyInformationModel.fromJson(vital));
}); response['List_BabyInformationModel'].forEach((vital) {
}, onFailure: (String error, int statusCode) { babyInformationModelList.add(List_BabyInformationModel.fromJson(vital));
hasError = true; });
super.error = error; }, onFailure: (String error, int statusCode) {
}, body: body); hasError = true;
super.error = error;
}, body: body);
}
} }
}
Loading…
Cancel
Save