|
|
|
@ -132,7 +132,10 @@ class _OutPatientsScreenState extends State<OutPatientsScreen> {
|
|
|
|
setState(() {
|
|
|
|
setState(() {
|
|
|
|
_activeLocation = _times.indexOf(item);
|
|
|
|
_activeLocation = _times.indexOf(item);
|
|
|
|
outPatientFilterType= _activeLocation==0?OutPatientFilterType.Previous:_activeLocation==0?OutPatientFilterType.Today:OutPatientFilterType.NextWeek;
|
|
|
|
outPatientFilterType= _activeLocation==0?OutPatientFilterType.Previous:_activeLocation==0?OutPatientFilterType.Today:OutPatientFilterType.NextWeek;
|
|
|
|
|
|
|
|
_controller.text="";
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
model.searchData("");
|
|
|
|
|
|
|
|
FocusScope.of(context).requestFocus(new FocusNode());
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
await model.getPatientBasedOnDate(item: item,
|
|
|
|
await model.getPatientBasedOnDate(item: item,
|
|
|
|
selectedPatientType: widget.selectedPatientType,
|
|
|
|
selectedPatientType: widget.selectedPatientType,
|
|
|
|
@ -222,6 +225,7 @@ class _OutPatientsScreenState extends State<OutPatientsScreen> {
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 10.0,
|
|
|
|
height: 10.0,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
child: model.filterData.isEmpty
|
|
|
|
child: model.filterData.isEmpty
|
|
|
|
@ -236,7 +240,9 @@ class _OutPatientsScreenState extends State<OutPatientsScreen> {
|
|
|
|
shrinkWrap: true,
|
|
|
|
shrinkWrap: true,
|
|
|
|
itemCount: model.filterData.length,
|
|
|
|
itemCount: model.filterData.length,
|
|
|
|
itemBuilder: (BuildContext ctxt, int index) {
|
|
|
|
itemBuilder: (BuildContext ctxt, int index) {
|
|
|
|
return Padding(
|
|
|
|
if(_activeLocation !=0 || (model.filterData[index].patientStatusType !=null && model.filterData[index].patientStatusType==43))
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.all(8.0),
|
|
|
|
padding: EdgeInsets.all(8.0),
|
|
|
|
child: PatientCard(
|
|
|
|
child: PatientCard(
|
|
|
|
patientInfo: model.filterData[index],
|
|
|
|
patientInfo: model.filterData[index],
|
|
|
|
@ -264,6 +270,8 @@ class _OutPatientsScreenState extends State<OutPatientsScreen> {
|
|
|
|
// isFromSearch: widget.isSearch,
|
|
|
|
// isFromSearch: widget.isSearch,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
return SizedBox();
|
|
|
|
})),
|
|
|
|
})),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|