|
|
|
|
@ -54,21 +54,20 @@ class InterventionHistoryBottomSheet extends StatelessWidget {
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: InterventionHistoryItem(
|
|
|
|
|
interventionHistory: interventionList[index],
|
|
|
|
|
onAcceptClick: (intervention, remarks) {
|
|
|
|
|
model.updateInterventionDiseaseStatus(
|
|
|
|
|
remarks: remarks,
|
|
|
|
|
isAccepted: true,
|
|
|
|
|
interventionID: interventionList[index].interventionId.toString(),
|
|
|
|
|
successMessage: TranslationBase.of(context).interventionAcceptedSuccessfully,
|
|
|
|
|
errorMessage: TranslationBase.of(context).unableToPerformTheAction
|
|
|
|
|
);
|
|
|
|
|
onAcceptClick: (intervention, remarks) {
|
|
|
|
|
model.updateInterventionDiseaseStatus(
|
|
|
|
|
remarks: remarks,
|
|
|
|
|
isAccepted: true,
|
|
|
|
|
interventionID: interventionList[index].interventionId.toString(),
|
|
|
|
|
successMessage: TranslationBase.of(context).interventionAcceptedSuccessfully,
|
|
|
|
|
errorMessage: TranslationBase.of(context).unableToPerformTheAction);
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
},
|
|
|
|
|
onRejectClick: (intervention, remarks) {
|
|
|
|
|
model.updateInterventionDiseaseStatus(
|
|
|
|
|
remarks: remarks,
|
|
|
|
|
interventionID: interventionList[index].interventionId.toString(),
|
|
|
|
|
successMessage: TranslationBase.of(context).interventionRejectedSuccessfully,
|
|
|
|
|
onRejectClick: (intervention, remarks) {
|
|
|
|
|
model.updateInterventionDiseaseStatus(
|
|
|
|
|
remarks: remarks,
|
|
|
|
|
interventionID: interventionList[index].interventionId.toString(),
|
|
|
|
|
successMessage: TranslationBase.of(context).interventionRejectedSuccessfully,
|
|
|
|
|
errorMessage: TranslationBase.of(context).unableToPerformTheAction
|
|
|
|
|
);
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
|