patient arrival

merge-requests/434/head
Sultan Khan 5 years ago
parent 66b81d1a27
commit bb29a1ac0f

@ -167,15 +167,23 @@ class _PatientsScreenState extends State<PatientsScreen> {
var strExist = str.length > 0 ? true : false; var strExist = str.length > 0 ? true : false;
if (true) { if (true) {
List<PatiantInformtion> filterDate = []; List<PatiantInformtion> filterDate = [];
String patiantAppointment = "";
for (var i = 0; i < responseModelList2.length; i++) { for (var i = 0; i < responseModelList2.length; i++) {
String patiantAppointment = try {
convertDateFormat(responseModelList[i].appointmentDate); if (responseModelList[i].appointmentDate == "") {
patiantAppointment = responseModelList[i].arrivedOn;
} else {
patiantAppointment =
convertDateFormat(responseModelList[i].appointmentDate);
}
String dateAppointment = checkDate(patiantAppointment); String dateAppointment = checkDate(patiantAppointment);
if (dateAppointment.contains(str)) { if (dateAppointment.contains(str)) {
filterDate.add(responseModelList[i]); filterDate.add(responseModelList[i]);
}
} catch (e) {
print(e);
} }
} }
@ -441,17 +449,18 @@ class _PatientsScreenState extends State<PatientsScreen> {
}, },
)), )),
Padding( Padding(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: MediaQuery.of(context) top: MediaQuery.of(context)
.size .size
.height * .height *
0.03), 0.03),
child: SERVICES_PATIANT2[ child: _locationBar(context)
int.parse(patientType)] == // child: SERVICES_PATIANT2[
"List_MyOutPatient" // int.parse(patientType)] ==
? _locationBar(context) // "List_MyOutPatient"
: Container(), // ? _locationBar(context)
), // : Container(),
),
// Row( // Row(
// mainAxisAlignment: // mainAxisAlignment:
// MainAxisAlignment.spaceEvenly, // MainAxisAlignment.spaceEvenly,

Loading…
Cancel
Save