merge-requests/494/head
Sultan Khan 5 years ago
parent f15d9ecb2d
commit 8652c30a24

@ -326,7 +326,10 @@ class _PatientsScreenState extends State<PatientsScreen> {
} }
} else { } else {
if (isView == false && val2 == 1) { if (isView == false && val2 == 1) {
lItems = res['GetPatientFileInformation_PRMList']; lItems = res['GetPatientFileInformation_PRMList']
.where((i) =>
i['PatientTypeDescription'] == 'Permanent File')
.toList();
} else { } else {
lItems = res[SERVICES_PATIANT2[val2]]; lItems = res[SERVICES_PATIANT2[val2]];
} }
@ -404,10 +407,30 @@ class _PatientsScreenState extends State<PatientsScreen> {
), ),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: MediaQuery.of(context).size.height * 0.35), top: MediaQuery.of(context).size.height * 0.10),
child: DrAppEmbeddedError( child: Center(
error: TranslationBase.of(context) child: Column(
.youDontHaveAnyPatient), crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(
height: 100,
),
Image.asset('assets/images/no-data.png'),
Padding(
padding: const EdgeInsets.all(8.0),
child: Texts(TranslationBase.of(context)
.youDontHaveAnyPatient),
)
],
),
)
// : Center(
// child: DrAppEmbeddedError(
// error: TranslationBase.of(
// context)
// .youDontHaveAnyPatient),
// ),
,
), ),
], ],
) )
@ -837,6 +860,11 @@ class _PatientsScreenState extends State<PatientsScreen> {
DateTime.now().day + 1), DateTime.now().day + 1),
'yyyy-MM-dd'); 'yyyy-MM-dd');
} else if (item == 'Next Week') { } else if (item == 'Next Week') {
_patientSearchFormValues.From = DateUtils.convertDateToFormat(
DateTime(DateTime.now().year, DateTime.now().month,
DateTime.now().day + 1),
'yyyy-MM-dd');
_patientSearchFormValues.To = DateUtils.convertDateToFormat( _patientSearchFormValues.To = DateUtils.convertDateToFormat(
DateTime(DateTime.now().year, DateTime.now().month, DateTime(DateTime.now().year, DateTime.now().month,
DateTime.now().day + 6), DateTime.now().day + 6),

Loading…
Cancel
Save