more updates and replace ftl by form in projectmgr
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@597948 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -103,6 +103,12 @@
|
||||
<response name="success" type="view" value="FindTask"/>
|
||||
<response name="error" type="view" value="FindTask"/>
|
||||
</request-map>
|
||||
<request-map uri="createProjectPhase">
|
||||
<security https="true" auth="true"/>
|
||||
<event type="simple" path="org/ofbiz/workeffort/workeffort/WorkflowSimpleEvents.xml" invoke="createWorkEffort"/>
|
||||
<response name="success" type="view" value="FindPhase"/>
|
||||
<response name="error" type="view" value="FindPhase"/>
|
||||
</request-map>
|
||||
<request-map uri="updateTask">
|
||||
<security https="true" auth="true"/>
|
||||
<event type="service" invoke="updateWorkEffort"/>
|
||||
|
||||
@@ -1,162 +0,0 @@
|
||||
<#--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<div class="screenlet">
|
||||
<div class="screenlet-title-bar">
|
||||
<ul>
|
||||
<#if project?has_content>
|
||||
<li class="head3"> ${uiLabelMap.PageTitleEditPhase} #${project.workEffortName?if_exists} ${uiLabelMap.CommonInformation}</li>
|
||||
<#else>
|
||||
<li class="head3"> ${uiLabelMap.PageTitleAddPhase}</li>
|
||||
</#if>
|
||||
</ul>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
<div class="screenlet-body">
|
||||
<#assign workEffortIdFrom = parameters.workEffortIdFrom>
|
||||
<#if phase?has_content>
|
||||
<form name="addPhaseAndAssocForm" method="get" action="<@ofbizUrl>updatePhaseAndAssoc</@ofbizUrl>">
|
||||
<#else>
|
||||
<br/>
|
||||
<form name="addPhaseAndAssocForm" method="get" action="<@ofbizUrl>createPhaseAndAssoc</@ofbizUrl>">
|
||||
</#if>
|
||||
<table width="100%" cellpadding="2" cellspacing="0">
|
||||
<tr>
|
||||
<#if !(phase?exists)>
|
||||
<td><input type="hidden" name="workEffortTypeId" value="${parameters.workEffortTypeId?if_exists}"/></td>
|
||||
<#else>
|
||||
<td><input type="hidden" name="workEffortTypeId" value="${phase.workEffortTypeId?if_exists}"/></td>
|
||||
<td><input type="hidden" name="workEffortId" value="${phase.workEffortId?if_exists}"/></td>
|
||||
<td><input type="hidden" name="workEffortName" value="${phase.workEffortName?if_exists}"/></td>
|
||||
</#if>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="hidden" name="workEffortIdFrom" value="${workEffortIdFrom?if_exists}"/></td>
|
||||
<td><input type="hidden" name="workEffortParentId" value="${workEffortIdFrom?if_exists}"/></td>
|
||||
<td><input type="hidden" name="workEffortAssocTypeId" value="WORK_EFF_BREAKDOWN"/>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%">
|
||||
${uiLabelMap.ProjectMgrPhaseDetails}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<#if phase?exists>
|
||||
<td class="label" >${uiLabelMap.ProjectMgrWorkEffortId}</td>
|
||||
<td>${phase.workEffortId?if_exists}</td>
|
||||
</#if>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" >${uiLabelMap.CommonName}*</td>
|
||||
<#if phase?exists>
|
||||
<td>${phase.workEffortName?if_exists}<span class="tooltip">${uiLabelMap.CommonRequired}</span></td>
|
||||
<#else>
|
||||
<td><input type="text" name="workEffortName" value=""/><span class="tooltip">${uiLabelMap.CommonRequired}</span></td>
|
||||
</#if>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" >${uiLabelMap.CommonDescription}</td>
|
||||
<#if phase?exists>
|
||||
<td><input type="text" name="description" value="${phase.description?if_exists}"/></td>
|
||||
<#else>
|
||||
<td><input type="text" name="description" value=""/></td>
|
||||
</#if>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label" >${uiLabelMap.CommonStatus}</td>
|
||||
<td>
|
||||
<select name="currentStatusId" class="selectBox">
|
||||
<#if phase?exists>
|
||||
<#assign currentStatus = phase.getRelatedOne("CurrentStatusItem")?if_exists>
|
||||
<option value="${currentStatus.statusId}">${currentStatus.description}</option>
|
||||
<#assign statusValidChangeToDetailList = delegator.findByAnd("StatusValidChangeToDetail", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", currentStatus.statusId))>
|
||||
<#list statusValidChangeToDetailList as statusValidChangeToDetail>
|
||||
<option value=${statusValidChangeToDetail.statusId}>[${uiLabelMap.WorkEffortGeneral}]${statusValidChangeToDetail.description}</option>
|
||||
</#list>
|
||||
<#else>
|
||||
<#assign statusItemGenrals = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "CALENDAR_STATUS"))>
|
||||
<#assign statusItemTasks = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "TASK_STATUS"))>
|
||||
<#assign statusItemEvents = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "EVENT_STATUS"))>
|
||||
<#list statusItemGenrals as statusItem>
|
||||
<option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortGeneral}]${statusItem.description}</option>
|
||||
</#list>
|
||||
<#list statusItemTasks as statusItem>
|
||||
<option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortTask}]${statusItem.description}</option>
|
||||
</#list>
|
||||
<#list statusItemEvents as statusItem>
|
||||
<option value="${statusItem.statusId?if_exists}">[${uiLabelMap.WorkEffortEvent}]${statusItem.description}</option>
|
||||
</#list>
|
||||
</#if>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.WorkEffortEstimatedStartDate}</td>
|
||||
<td>
|
||||
<#if phase?exists>
|
||||
<input type="text" name="estimatedStartDate" value="${phase.estimatedStartDate?if_exists}"/>
|
||||
<#else>
|
||||
<input type="text" name="estimatedStartDate" value=""/>
|
||||
</#if>
|
||||
<a href="javascript:call_cal(document.addPhaseAndAssocForm.estimatedStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.WorkEffortEstimatedCompletionDate}</td>
|
||||
<td>
|
||||
<#if phase?exists>
|
||||
<input type="text" name="estimatedCompletionDate" value="${phase.estimatedCompletionDate?if_exists}"/>
|
||||
<#else>
|
||||
<input type="text" name="estimatedCompletionDate" value=""/>
|
||||
</#if>
|
||||
<a href="javascript:call_cal(document.addPhaseAndAssocForm.estimatedCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.FormFieldTitle_actualStartDate}</td>
|
||||
<td>
|
||||
<#if phase?exists>
|
||||
<input type="text" name="actualStartDate" value="${phase.actualStartDate?if_exists}"/>
|
||||
<#else>
|
||||
<input type="text" name="actualStartDate" value=""/>
|
||||
</#if>
|
||||
<a href="javascript:call_cal(document.addPhaseAndAssocForm.actualStartDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label">${uiLabelMap.FormFieldTitle_actualCompletionDate}</td>
|
||||
<td>
|
||||
<#if phase?exists>
|
||||
<input type="text" name="actualCompletionDate" value="${phase.actualCompletionDate?if_exists}"/>
|
||||
<#else>
|
||||
<input type="text" name="actualCompletionDate" value=""/>
|
||||
</#if>
|
||||
<a href="javascript:call_cal(document.addPhaseAndAssocForm.actualCompletionDate,'${nowTimestamp?string}');"><img src="<@ofbizContentUrl>/images/cal.gif</@ofbizContentUrl>" width="16" height="16" border="0" alt="Calendar"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
<input type="submit" name="submit" value="${uiLabelMap.CommonSave}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -213,7 +213,7 @@ under the License.
|
||||
<order-by field-name="phaseName"/>
|
||||
<order-by field-name="taskName"/>
|
||||
</entity-and>
|
||||
<set field="workEffort" from-field=""/>
|
||||
<set field="task" from-field=""/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
@@ -339,10 +339,11 @@ under the License.
|
||||
<set field="titleProperty" value="PageTitleEditPhase"/>
|
||||
<set field="tabButtonItem" value="phases"/>
|
||||
<set field="labelTitleProperty" value="PageTitleFindPhase"/>
|
||||
<set field="workEffortId" from-field="parameters.workEffortIdFrom"/>
|
||||
<set field="workEffortIdFrom" from-field="parameters.workEffortIdFrom"/>
|
||||
<set field="workEffortTypeId" from-field="parameters.workEffortTypeId"/>
|
||||
<script location="component://projectmgr/webapp/projectmgr/WEB-INF/actions/ChildWorkEffort.bsh"/>
|
||||
<set field="projectId" from-field="parameters.workEffortIdFrom"/>
|
||||
<entity-and entity-name="WorkEffort" list-name="phases">
|
||||
<field-map field-name="workEffortParentId" env-name="projectId"/>
|
||||
<field-map field-name="workEffortTypeId" value="PHASE"/>
|
||||
</entity-and>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
@@ -356,9 +357,12 @@ under the License.
|
||||
<include-form name="ListPhases" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
|
||||
</container>
|
||||
</container>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://projectmgr/webapp/projectmgr/project/editphaseandassoc.ftl"/></html>
|
||||
</platform-specific>
|
||||
<container style="screenlet">
|
||||
<container style="screenlet-title-bar"><label style="boxhead">${uiLabelMap.PageTitleAddPhase}</label></container>
|
||||
<container style="screenlet-body">
|
||||
<include-form name="AddProjectPhase" location="component://projectmgr/widget/forms/TaskForms.xml"/>
|
||||
</container>
|
||||
</container>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
|
||||
@@ -145,13 +145,9 @@
|
||||
<field-map field-name="statusId" env-name="currentStatusId"/>
|
||||
</entity-one>
|
||||
</row-actions>
|
||||
<field name="workEffortTypeId"><hidden/></field>
|
||||
<field name="workEffortId"><hidden/></field>
|
||||
<field name="workEffortIdFrom"><hidden/></field>
|
||||
<field name="fromDate"><hidden/></field>
|
||||
<field name="workEffortAssocTypeId"><hidden/></field>
|
||||
<field name="workEffortIdTo" entry-name="workEffortId"><hidden/></field>
|
||||
<field name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><display/></field>
|
||||
<field name="workEffortName" position="1" title="${uiLabelMap.CommonName}*"><text/></field>
|
||||
<field name="currentStatusId">
|
||||
<drop-down allow-empty="false" current-description="${currentStatus.description}">
|
||||
<entity-options entity-name="StatusValidChangeToDetail" key-field-name="statusIdTo" description="${transitionName} (${description})">
|
||||
@@ -161,10 +157,6 @@
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"><text size="15"/></field>
|
||||
<field name="estimatedStartDate" entry-name="workEffortToEstimatedStartDate" title="${uiLabelMap.WorkEffortStartDate}"><date-time/></field>
|
||||
<field name="estimatedCompletionDate" entry-name="workEffortToEstimatedCompletionDate" title="${uiLabelMap.WorkEffortStartDate}"><date-time/></field>
|
||||
<field name="actualStartDate" entry-name="actualStartDate" title="${uiLabelMap.WorkEffortCompletionDate}"><date-time/></field>
|
||||
<field name="actualCompletionDate" entry-name="actualCompletionDate" title="${uiLabelMap.WorkEffortCompletionDate}"><date-time/></field>
|
||||
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
|
||||
</form>
|
||||
<form name="ListPhaseTaskInfo" type="list" list-name="phases">
|
||||
|
||||
@@ -24,12 +24,12 @@
|
||||
<form name="EditTask" type="single" target="updateTask" default-map-name="task">
|
||||
<actions>
|
||||
<set field="projectId" from-field="parameters.workEffortIdFrom"/>
|
||||
<entity-one entity-name="StatusItem" value-name="currentStatus" auto-field-map="false">
|
||||
<entity-one entity-name="StatusItem" value-name="currentStatus" auto-field-map="false">
|
||||
<field-map field-name="statusId" env-name="task.statusId"/>
|
||||
</entity-one>
|
||||
</actions>
|
||||
<alt-target use-when="projectId!=null" target="createProjectTaskOrPhase"/>
|
||||
<alt-target use-when="task==null" target="createTask"/>
|
||||
<alt-target use-when="task==null&&projectId==null" target="createTask"/>
|
||||
<field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
|
||||
<field name="DONE_PAGE"><hidden value="${donePage}"/></field>
|
||||
<field name="workEffortTypeId"><hidden value="TASK"/></field>
|
||||
@@ -37,6 +37,7 @@
|
||||
<field use-when="task==null&&taskId==null" name="taskId" title="${uiLabelMap.ProjectMgrWorkEffortId}"><ignored/></field>
|
||||
<field use-when="task==null&&taskId!=null" name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
|
||||
<field use-when="task!=null" name="workEffortName" title="${uiLabelMap.CommonName}*"><display/></field>
|
||||
<field use-when="task==null&&taskId!=null" name="workEffortName" title="${uiLabelMap.CommonName}*"><text/></field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
||||
<field use-when="task!=null" name="statusId" title="${uiLabelMap.CommonStatus}">
|
||||
<drop-down allow-empty="false" current-description="${currentStatus.description}">
|
||||
@@ -97,13 +98,22 @@
|
||||
<field name="actualCompletionDate" title="${uiLabelMap.FormFieldTitle_actualCompletionDate}"><date-time/></field>
|
||||
<field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
|
||||
</form>
|
||||
<form name="AddPhase" type="single" target="createProjectTaskOrPhase" default-map-name="dummy">
|
||||
<form name="AddPhase" type="single" target="createProjectTaskOrPhase">
|
||||
<field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
|
||||
<field name="workEffortParentId"><hidden value="${projectId}"/></field>
|
||||
<field name="workEffortTypeId"><hidden value="PHASE"/></field>
|
||||
<field name="currentStatusId"><hidden value="CAL_ACCEPTED"/></field>
|
||||
<field name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
||||
<field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
|
||||
</form>
|
||||
<form name="AddProjectPhase" type="single" target="createProjectPhase">
|
||||
<field name="workEffortIdFrom"><hidden value="${parameters.workEffortIdFrom}"/></field>
|
||||
<field name="workEffortParentId"><hidden value="${projectId}"/></field>
|
||||
<field name="workEffortTypeId"><hidden value="PHASE"/></field>
|
||||
<field name="currentStatusId"><hidden value="CAL_ACCEPTED"/></field>
|
||||
<field name="workEffortName" title="${uiLabelMap.CommonName}*" tooltip="${uiLabelMap.CommonRequired}"><text/></field>
|
||||
<field name="description" title="${uiLabelMap.CommonDescription}"><text/></field>
|
||||
<field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
|
||||
</form>
|
||||
|
||||
@@ -118,8 +128,8 @@
|
||||
</field>
|
||||
<field name="workEffortTypeId" title="${uiLabelMap.ProjectMgrWorkEffortTypeId}"><display-entity entity-name="WorkEffortType"/></field>
|
||||
<field name="createdStamp"><display/></field>
|
||||
<field name="phase"><display description="${phaseName}[${phaseId}]"/></field>
|
||||
<field name="project"><hyperlink target="EditProject?workEffortId=${projectId}" description="${projectName}[${projectId}]"/></field>
|
||||
<field name="phase"><hyperlink target="FindPhase?workEffortIdFrom=${projectId}" description="${phaseName}[${phaseId}]"/></field>
|
||||
<field name="project"><hyperlink target="EditProject?workEffortIdFrom=${projectId}" description="${projectName}[${projectId}]"/></field>
|
||||
</form>
|
||||
<form name="ListChildEfforts" target="updateTaskListAndAssoc" title="" list-name="tasks" type="list" separate-columns="true" paginate-target="FindTaskList">
|
||||
<row-actions>
|
||||
|
||||
Reference in New Issue
Block a user