Changeset 586


Ignore:
Timestamp:
Jun 9, 2010, 11:36:55 AM (14 years ago)
Author:
gav
Message:

Add taskGroup and detail to task search view, as per ticket #65.
New toShortString() to Entry domain class.

Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/Entry.groovy

    r431 r586  
    2525        "${this.comment} - ${this.enteredBy}, ${this.dateDone}"
    2626    }
     27
     28    String toShortString() {
     29        "${enteredBy.firstName} ${enteredBy.lastName} - ${durationHour}h : ${durationMinute}min"
     30    }
    2731}
    2832
  • trunk/grails-app/views/taskDetailed/search.gsp

    r583 r586  
    9292                                                                                                params="${filterParams}" />
    9393
    94                                 <g:sortableColumn property="id" title="Id" params="${filterParams}" />
    95 
    9694                                <g:sortableColumn property="targetStartDate" title="Target Start Date" params="${filterParams}" />
    9795
    9896                                <g:sortableColumn property="description" title="Description" params="${filterParams}" />
    9997
     98                                <g:sortableColumn property="taskGroup" title="Group" params="${filterParams}" />
     99
     100                                <g:sortableColumn  property="taskType" title="Type" params="${filterParams}" />
     101
    100102                                <g:sortableColumn  property="taskPriority" title="Priority" params="${filterParams}" />
    101 
    102                                 <g:sortableColumn  property="taskType" title="Type" params="${filterParams}" />
    103103
    104104                                <g:sortableColumn  property="taskStatus" title="Status" params="${filterParams}" />
     
    123123                                </td>
    124124
    125                                 <td class="idColumn" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
    126                                     ${fieldValue(bean:taskInstance, field:'id')}
    127                                 </td>
    128 
    129125                                <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
    130126                                    <g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/>
     
    132128
    133129                                <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
    134                                     <b>${fieldValue(bean:taskInstance, field:'description')}</b>
     130                                    <b>
     131                                        Task #${fieldValue(bean:taskInstance, field:'id')}<br />
     132                                        ${fieldValue(bean:taskInstance, field:'description')}
     133                                    </b>
    135134                                    <br />
    136135                                    <br />
     
    138137                                        ${fieldValue(bean:taskInstance, field:'primaryAsset')}<br />
    139138                                    </g:if>
    140                                     ${fieldValue(bean:taskInstance, field:'taskGroup')}<br />
    141139                                    <g:each in="${taskInstance.assignedGroups}" status="j" var="assignedGroup">
    142140                                        ${assignedGroup.encodeAsHTML()}<br />
     
    145143                                        ${assignedPerson.encodeAsHTML()}<br />
    146144                                    </g:each>
     145                                    <g:each in="${taskInstance.entries}" status="m" var="entry">
     146                                        <g:if test="${entry.entryType.id == 3}">
     147                                            <em>${'WD: ' +entry.toShortString().encodeAsHTML()}</em><br />
     148                                        </g:if>
     149                                    </g:each>
     150                                    <g:if test="${taskInstance.subTasks}">
     151                                        Sub Tasks: ${taskInstance.subTasks.size()}<br />
     152                                    </g:if>
     153                                </td>
     154
     155                                <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
     156                                    ${fieldValue(bean:taskInstance, field:'taskGroup')}
     157                                </td>
     158
     159                                <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
     160                                    ${fieldValue(bean:taskInstance, field:'taskType')}
    147161                                </td>
    148162
    149163                                <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
    150164                                    ${fieldValue(bean:taskInstance, field:'taskPriority')}
    151                                 </td>
    152 
    153                                 <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${taskInstance.id}"'>
    154                                     ${fieldValue(bean:taskInstance, field:'taskType')}
    155165                                </td>
    156166
Note: See TracChangeset for help on using the changeset viewer.