remove commented code

merge-requests/542/head
Elham Rababah 5 years ago
parent 8d7fef3db9
commit 9d780f72b4

@ -185,141 +185,5 @@ class _UpdateNoteOrderState extends State<UpdateNoteOrder> {
),
),
);
// return BaseView<PatientViewModel>(
// builder: (BuildContext context, PatientViewModel model, Widget child) =>
// AppScaffold(
// isShowAppBar: false,
// backgroundColor: Theme
// .of(context)
// .scaffoldBackgroundColor,
// body: SingleChildScrollView(
// child: Container(
// height: MediaQuery
// .of(context)
// .size
// .height * 1.0,
// child: Padding(
// padding: EdgeInsets.all(0.0),
// child: Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// children: [
// BottomSheetTitle(title: widget.visitType == 3
// ? 'Add Order Sheet'
// : 'Add Progress Note',),
// SizedBox(
// height: 10.0,
// ),
//
// Center(
// child: FractionallySizedBox(
// widthFactor: 0.9,
// child: Column(
// children: [
// AppTextFieldCustom(
// hintText: widget.visitType == 3
// ? 'Add Order Sheet'
// : 'Add Progress Note',
// //TranslationBase.of(context).addProgressNote,
// controller: progressNoteController,
// maxLines: 25,
// minLines: 10,
// hasBorder: true,
// validationError:progressNoteController.text.isEmpty&&isSubmitted?TranslationBase.of(context).emptyMessage:null ,
//
// ),
// ],
// ),
// ),
// ),
//
// ],
// ),
// ),
// ),
// ),
// bottomSheet: Container(
// margin: EdgeInsets.all(SizeConfig.widthMultiplier * 5),
// child: Wrap(
// alignment: WrapAlignment.center,
// children: <Widget>[
// AppButton(
// title: widget.visitType == 3
// ? 'Add Order Sheet'
// : 'Add Progress Note',
// color: Color(0xff359846),
// // disabled: progressNoteController.text.isEmpty,
// fontWeight: FontWeight.w700,
// onPressed: () async {
// setState(() {
// isSubmitted = true;
// });
// if (progressNoteController.text.isNotEmpty) {
// GifLoaderDialogUtils.showMyDialog(context);
// Map profile = await sharedPref.getObj(DOCTOR_PROFILE);
//
// DoctorProfileModel doctorProfile = DoctorProfileModel
// .fromJson(profile);
//
//
// if (widget.isUpdate) {
// UpdateNoteReqModel reqModel = UpdateNoteReqModel(
// admissionNo: int.parse(widget.patient
// .admissionNo),
// cancelledNote: false,
// lineItemNo: 30,
// createdBy: widget.note.createdBy,
// notes: progressNoteController.text
//
// ,
// verifiedNote: false,
//
// patientTypeID: widget.patient.patientType,
// patientOutSA: false,
// );
// await model.updatePatientProgressNote(reqModel);
// } else {
// CreateNoteModel reqModel = CreateNoteModel(
// admissionNo: int.parse(widget.patient
// .admissionNo),
// createdBy: doctorProfile.doctorID,
// visitType: widget.visitType,
// patientID: widget.patient.patientId,
// nursingRemarks: ' ',
// patientTypeID: widget.patient.patientType,
// patientOutSA: false,
//
// notes: progressNoteController.text
// );
//
// await model.createPatientProgressNote(reqModel);
// }
//
// if (model.state == ViewState.ErrorLocal) {
// Helpers.showErrorToast(
// Helpers.generateContactAdminMsg());
// } else {
// ProgressNoteRequest progressNoteRequest =
// ProgressNoteRequest(
// visitType: widget.visitType,
// // if equal 5 then this will return progress note
// admissionNo: int.parse(widget.patient
// .admissionNo),
// projectID: widget.patient.projectId,
// patientTypeID: widget.patient.patientType,
// languageID: 2);
// await widget.patientModel.getPatientProgressNote(
// progressNoteRequest.toJson());
// }
//
// GifLoaderDialogUtils.hideDialog(context);
// Navigator.of(context).pop();
// }
// }
// ),
// ],
// ),
// ),
// ),
// );
}
}

Loading…
Cancel
Save