andrewblake1 / WorksManagement

Project/Works management system for Northpower's Westcoast Energy
0 stars 3 forks source link

Mode - changes required #472

Open hawea opened 9 years ago

hawea commented 9 years ago

Hi Andrew, I am writing this to document the changes I will need to be done for the Modes, however don't expect this to be done in the near future.

Firstly, I would like to insert a TaskTemplateToMode table, this will allow us to limit which Modes a person can select in the Task update view.

We will also need to add a Mode table to the Labour Resource (TaskTemplateToLabourResourceToMode; TaskToLabourResourceToMode; ActionToLabourResourceToMode) and Plant (TaskTemplateToPlantToMode; TaskToPlantToMode; ActionToPlantToMode) for Modes, similar to what we have done for the DutyStepToMode, so that we can attach multiple Modes to one Labour Resource or Plant Resource, rather than only being able to attach one as we do currently. The reason for this is that currently the Mode will reset any changes we have made, even if the same resource applies to two or more Modes.

Next, I would like to add a new table to the TaskTemplateToCustomField table to enable Custom Fields to only be visible in the Modes we want them to be visible in i.e. TaskTemplateToCustomFieldToMode. By selecting which Modes the CustomField is to be visible in, we can then have the CustomFields appear or disappear as required. This is necessary for some task information which is only relevant to certain Modes.

Cheers Hawea