Author: hansbak
Date: Sun Jan 4 22:37:39 2009
New Revision: 731474
URL:
http://svn.apache.org/viewvc?rev=731474&view=revLog:
bsh in formfields gives a problem...is working in rowactions
Modified:
ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TimeSheetForms.xml
Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TimeSheetForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TimeSheetForms.xml?rev=731474&r1=731473&r2=731474&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TimeSheetForms.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/widget/forms/TimeSheetForms.xml Sun Jan 4 22:37:39 2009
@@ -116,18 +116,21 @@
</service>
<set field="complete" value="${uiLabelMap.ProjectMgrToComplete}"/>
</actions>
+ <row-actions>
+ <set field="actualHours" value="${bsh:org.ofbiz.project.Various.calculateActualHours(delegator, timesheetId)}"/>
+ <set field="completeLink" value="${bsh:"TIMESHEET_IN_PROCESS".equals(statusId)?complete:""}"/>
+ </row-actions>
<field name="timesheetId" title="${uiLabelMap.WorkEffortTimesheetTimesheetId}" widget-style="buttontext">
<hyperlink also-hidden="false" description="${timesheetId}" target="Timesheet?timesheetId=${timesheetId}"/>
</field>
<field name="partyId" title="${uiLabelMap.PartyParty}"><display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName} ${groupName}"/></field>
- <field name="actualHours" title="${uiLabelMap.ProjectMgrActualHours}"><display description="${bsh: org.ofbiz.project.Various.calculateActualHours(delegator, timesheetId);}"/></field>
+ <field name="actualHours" title="${uiLabelMap.ProjectMgrActualHours}"><display/></field>
<field name="statusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem" description="${description}"/></field>
<field name="fromDate" title="${uiLabelMap.CommonFromDate}"><display type="date"/></field>
<field name="thruDate" title="${uiLabelMap.CommonThruDate}"><display type="date"/></field>
<!--field name="comments" title="${uiLabelMap.CommonComments}"><display/></field-->
<field name="completeLink" title="${uiLabelMap.CommonStatustoComplete}" widget-style="buttontext">
- <hyperlink target="TimeSheetStatusToComplete?timesheetId=${timesheetId}&statusId=TIMESHEET_COMPLETED"
- description="${bsh:statusId.equals("TIMESHEET_IN_PROCESS")?complete:""}" also-hidden="false"/>
+ <hyperlink target="TimeSheetStatusToComplete?timesheetId=${timesheetId}&statusId=TIMESHEET_COMPLETED" description="${completeLink}"/>
</field>
</form>