|
|
|
@ -92,29 +92,15 @@ class _MedicalReportPageState extends State<MedicalReportPage> {
|
|
|
|
|
)),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// Navigator.of(context).pushNamed(PATIENT_MEDICAL_REPORT_INSERT, arguments: {
|
|
|
|
|
// 'patient': patient,
|
|
|
|
|
// 'patientType': patientType,
|
|
|
|
|
// 'arrivalType': arrivalType,
|
|
|
|
|
// 'type': MedicalReportStatus.ADD,
|
|
|
|
|
// 'model': model,
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
label: TranslationBase.of(context).createNewMedicalReport,
|
|
|
|
|
),
|
|
|
|
|
if (model.state != ViewState.ErrorLocal)
|
|
|
|
|
// if (model.state != ViewState.ErrorLocal)ß
|
|
|
|
|
...List.generate(
|
|
|
|
|
model.medicalReportList.length,
|
|
|
|
|
(index) => InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
if (model.medicalReportList[index].status == 1) {
|
|
|
|
|
// Navigator.of(context).pushNamed(PATIENT_MEDICAL_REPORT_INSERT, arguments: {
|
|
|
|
|
// 'patient': patient,
|
|
|
|
|
// 'patientType': patientType,
|
|
|
|
|
// 'arrivalType': arrivalType,
|
|
|
|
|
// 'medicalReport': model.medicalReportList[index],
|
|
|
|
|
// 'model': model,
|
|
|
|
|
// });
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
MaterialPageRoute(
|
|
|
|
|