|
|
|
@ -118,8 +118,8 @@ class CreateRequestModel {
|
|
|
|
if (context.userProvider.isQualityUser && context.settingProvider.isUserFlowMedical) {
|
|
|
|
if (context.userProvider.isQualityUser && context.settingProvider.isUserFlowMedical) {
|
|
|
|
list.add(CreateRequestModel("Equipment Internal Audit Checklist".addTranslation, "add_icon", CreateEquipmentInternalAuditForm.id));
|
|
|
|
list.add(CreateRequestModel("Equipment Internal Audit Checklist".addTranslation, "add_icon", CreateEquipmentInternalAuditForm.id));
|
|
|
|
list.add(CreateRequestModel("System Internal Audit Checklist".addTranslation, "add_icon", CreateSystemInternalAuditForm.id));
|
|
|
|
list.add(CreateRequestModel("System Internal Audit Checklist".addTranslation, "add_icon", CreateSystemInternalAuditForm.id));
|
|
|
|
} else if (context.userProvider.isAssessor && context.settingProvider.isUserFlowMedical) {
|
|
|
|
} else if (context.userProvider.isAssessor && context.settingProvider.isUserFlowMedical) { // todo: handled in permission api, so no need to check here
|
|
|
|
list.add(CreateRequestModel("TRAF".addTranslation, "add_icon", CreateTRAFRequestPage.id));
|
|
|
|
// list.add(CreateRequestModel("TRAF".addTranslation, "add_icon", CreateTRAFRequestPage.id));
|
|
|
|
} else if (context.userProvider.isEngineer) {
|
|
|
|
} else if (context.userProvider.isEngineer) {
|
|
|
|
if (Provider.of<SettingProvider>(context, listen: false).engineerCanCreateCM) {
|
|
|
|
if (Provider.of<SettingProvider>(context, listen: false).engineerCanCreateCM) {
|
|
|
|
list.add(CreateRequestModel(context.translation.correctiveMaintenance, "add_icon", CreateCMRequest.id));
|
|
|
|
list.add(CreateRequestModel(context.translation.correctiveMaintenance, "add_icon", CreateCMRequest.id));
|
|
|
|
|