|
|
|
@ -62,14 +62,13 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
|
)),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
TextEditingController typeController = TextEditingController();
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void initState() {
|
|
|
|
|
super.initState();
|
|
|
|
|
if(widget.patientProgressNote.planNote !=null ){
|
|
|
|
|
setState(() {
|
|
|
|
|
isAddProgress = true;
|
|
|
|
|
isAddProgress = false;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -94,7 +93,9 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
|
widget.patientProgressNote.createdOn = model.patientProgressNoteList[0].createdOn;
|
|
|
|
|
widget.patientProgressNote.editedOn = model.patientProgressNoteList[0].editedOn;
|
|
|
|
|
widget.patientProgressNote.editedByName = model.patientProgressNoteList[0].editedByName;
|
|
|
|
|
|
|
|
|
|
setState(() {
|
|
|
|
|
isAddProgress = false;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
widget.changeLoadingState(false);
|
|
|
|
|
},
|
|
|
|
@ -195,7 +196,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Texts(
|
|
|
|
|
progressNoteController.text+"asdasd sdakfjhg gfadsfg dashkfgasd hgd sfnbsd,fbnsdafbasdnzb",
|
|
|
|
|
progressNoteController.text,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
@ -204,6 +205,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
|
onTap: (){
|
|
|
|
|
setState(() {
|
|
|
|
|
isAddProgress = true;
|
|
|
|
|
widget.changePageViewIndex(3,isChangeState:false);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
child: Icon(DoctorApp.edit,size: 18,))
|
|
|
|
@ -266,10 +268,10 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
|
widget.patientProgressNote.planNote = progressNoteController.text;
|
|
|
|
|
isAddProgress = !isAddProgress;
|
|
|
|
|
});
|
|
|
|
|
submitPlan(model);
|
|
|
|
|
|
|
|
|
|
} else{
|
|
|
|
|
var asd ="";
|
|
|
|
|
// submitPlan(model);
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
@ -309,7 +311,7 @@ class _UpdatePlanPageState extends State<UpdatePlanPage> {
|
|
|
|
|
if (model.state == ViewState.ErrorLocal) {
|
|
|
|
|
helpers.showErrorToast(model.error);
|
|
|
|
|
} else {
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
widget.changePageViewIndex(4,isChangeState:false);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
helpers.showErrorToast(TranslationBase.of(context).progressNoteErrorMsg);
|
|
|
|
|