child Vaccines

er_location
Amjad amireh 4 years ago
parent 24795e808f
commit cb2a78e2ee

@ -0,0 +1,18 @@
class GET_VACCINATIONS_ITEMSMODEL {
String dESCRIPTION;
String iTEMCODE;
GET_VACCINATIONS_ITEMSMODEL({this.dESCRIPTION, this.iTEMCODE});
GET_VACCINATIONS_ITEMSMODEL.fromJson(Map<String, dynamic> json) {
dESCRIPTION = json['DESCRIPTION'];
iTEMCODE = json['ITEM_CODE'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['DESCRIPTION'] = this.dESCRIPTION;
data['ITEM_CODE'] = this.iTEMCODE;
return data;
}
}

@ -0,0 +1,38 @@
import 'package:diplomaticquarterapp/config/config.dart';
import 'package:diplomaticquarterapp/core/model/childvaccines/get_vacainations_itemsmodel.dart';
import '../base_service.dart';
class GetVccinationsItemsService extends BaseService {
List<GET_VACCINATIONS_ITEMSMODEL> getVaccinationsItemModelList = List();
Map<String, dynamic> body = Map();
Future getaccinationsitemOrders() async {
hasError = false;
// await getUser();
// body['BabyName']="fffffffffff eeeeeeeeeeeeee";
// body['DOB'] = "/Date(1585774800000+0300)/";
// body['EmailAddress'] = user.emailAddress;
// body['isDentalAllowedBackend'] = false;
// body['SendEmail'] = false;
// body['IsLogin'] =true;
await baseAppClient.post(GET_TABLE_REQUEST,
onSuccess: (dynamic response, int statusCode) {
getVaccinationsItemModelList.clear();
response['List_CreateVaccinationTableModel'].forEach((vital) {
getVaccinationsItemModelList.add(
GET_VACCINATIONS_ITEMSMODEL.fromJson(vital));
});
}, onFailure: (String error, int statusCode) {
hasError = true;
super.error = error;
}, body: body);
}
}

@ -274,19 +274,7 @@ class _AddNewChildPageState extends State<AddNewChildPage> {
model.getNewBabyOrders(newChild: newChild); model.getNewBabyOrders(newChild: newChild);
//DateTime.now();//DateUtil.convertStringToDate(getStartDay());
// addvancedModel.alertBy = 2;
// addvancedModel.alertBy = addvancedModel.babyID;
// addvancedModel.genderDescription =
// checkedValue == 1 ? "Male" : "Female";
// addvancedModel.patientID = addvancedModel.patientID;
// addvancedModel.userID = addvancedModel.userID;
// // advanceModel.fileNumber = _fileTextController.text;
// // advanceModel.hospitalsModel = _selectedHospital;
// // advanceModel.note = _notesTextController.text;
// // advanceModel.email = email ?? model.user.emailAddress;
// // advanceModel.amount = amount;
// // bloodDetails.city=_selectedHospital.toString();
AppToast.showSuccessToast(message: "Record Added"); AppToast.showSuccessToast(message: "Record Added");
//============ //============
Navigator.push( Navigator.push(
@ -294,10 +282,6 @@ class _AddNewChildPageState extends State<AddNewChildPage> {
FadePage( FadePage(
page: ChildPage(), page: ChildPage(),
//ChildPage(babyInformationModelList:model.BabyInformationModelList)
// HospitalsPage(
// findusHospitalModelList: model.FindusHospitalModelList,
// )
), ),
); );
//============== //==============

@ -12,9 +12,7 @@ import 'package:flutter/material.dart';
import 'package:diplomaticquarterapp/uitl/date_uitl.dart'; import 'package:diplomaticquarterapp/uitl/date_uitl.dart';
class ChildPage extends StatefulWidget { class ChildPage extends StatefulWidget {
//final List<List_BabyInformationModel> babyInformationModelList;
// ChildPage({Key key, this.babyInformationModelList}) ;
@override @override
_ChildPageState createState() => _ChildPageState(); _ChildPageState createState() => _ChildPageState();
@ -139,10 +137,6 @@ class _ChildPageState extends State<ChildPage> with SingleTickerProviderStateMix
FadePage( FadePage(
page: AddNewChildPage(), page: AddNewChildPage(),
//ChildPage(babyInformationModelList:model.BabyInformationModelList)
// HospitalsPage(
// findusHospitalModelList: model.FindusHospitalModelList,
// )
), ),
), ),

@ -39,33 +39,7 @@ class _SelectGenderDialogState extends State<SelectGenderDialog> {
SizedBox( SizedBox(
height: 5.0, height: 5.0,
), ),
// Row(
// children: <Widget>[
// Expanded(
// flex: 1,
// child: InkWell(
// onTap: () {
// setState(() {
// beneficiaryType = Gender.Female;
// });
// },
// child: ListTile(
// title: Text("Female"),
// leading: Radio(
// value: Gender.Female,
// groupValue: beneficiaryType,
// activeColor: Colors.red[800],
// onChanged: (Gender value) {
// setState(() {
// beneficiaryType = value;
// });
// },
// ),
// ),
// ),
// )
// ],
// ),
SizedBox( SizedBox(
height: 5.0, height: 5.0,
), ),

Loading…
Cancel
Save