Ignore:
Timestamp:
Mar 3, 2011, 11:17:40 PM (13 years ago)
Author:
gav
Message:

Update service, controller and view logic to hand Task and Entry highestSeverity.
Also remove associatedAssets from task search panes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/taskDetailed/search.gsp

    r836 r838  
    9393                                                                                                params="${filterParams}" />
    9494
     95                                <custom:sortableColumnWithImg property="highestSeverity"
     96                                                                                                imgSrc="${resource(dir:'images/skin',file:'award_star_silver_3.png')}"
     97                                                                                                imgAlt="Severity"
     98                                                                                                imgTitle="Highest Severity"
     99                                                                                                params="${filterParams}" />
     100
    95101                                <g:sortableColumn property="targetStartDate" title="Target Start Date" params="${filterParams}" />
    96102
     
    125131                                    <g:if test="${taskInstance.attentionFlag}">
    126132                                        <img  src="${resource(dir:'images/skin',file:'flag_red.png')}" alt="Flag" title="Attention Flag"/>
     133                                    </g:if>
     134                                </td>
     135
     136                                <td class="idColumn" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
     137                                    <g:if test="${taskInstance.highestSeverity}">
     138                                        ${taskInstance.highestSeverity.code.encodeAsHTML()}
    127139                                    </g:if>
    128140                                </td>
     
    237249                                                                                leadPerson.firstName,
    238250                                                                                taskGroup.name,
    239                                                                                 associatedAssets.name,
     251                                                                                highestSeverity.code,
    240252                                                                                primaryAsset.name,
    241253                                                                                taskStatus.name,
     
    245257                                                                                'leadPerson.firstName':[values: associatedPropertyValues.firstNameList],
    246258                                                                                'taskGroup.name':[values: associatedPropertyValues.taskGroupList],
    247                                                                                 'associatedAssets.name':[values: associatedPropertyValues.assetList],
     259                                                                                'highestSeverity.code':[values: associatedPropertyValues.highestSeverityList],
    248260                                                                                'primaryAsset.name':[values: associatedPropertyValues.assetList],
    249261                                                                                'taskStatus.name':[values: associatedPropertyValues.taskStatusList],
Note: See TracChangeset for help on using the changeset viewer.