📄 ordertasklist.ftl
字号:
<#-- * Copyright (c) 2003 The Open For Business Project - www.ofbiz.org * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@author Andy Zeneski (jaz@ofbiz.org) *@author Jean-Luc.Malet@nereide.biz (migration to uiLabelMap) *@version $Rev: 7319 $ *@since 2.2--><script language="JavaScript" type="text/javascript"><!-- // function viewOrder(form) { if (form.taskStatus.value == "WF_NOT_STARTED") { if (form.delegate.checked) { form.action = "<@ofbizUrl>acceptassignment</@ofbizUrl>"; } else { form.action = "<@ofbizUrl>orderview</@ofbizUrl>"; } } else { if (form.delegate.checked) { form.action = "<@ofbizUrl>delegateassignment</@ofbizUrl>"; } else { form.action = "<@ofbizUrl>orderview</@ofbizUrl>"; } } form.submit(); }// --></script><#if security.hasRolePermission("ORDERMGR", "_VIEW", "", "", session) || security.hasRolePermission("ORDERMGR_ROLE", "_VIEW", "", "", session)><#assign tasksFound = false><table border="0" width='100%' cellspacing='0' cellpadding='0' class='boxoutside'> <tr> <td width='100%'> <table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxtop'> <tr> <td align="left" width='70%' > <div class='boxhead'>${uiLabelMap.OrderOrderNeedingAttention}</div> </td> </tr> </table> </td> </tr> <tr> <td width='100%'> <table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'> <tr> <td width='100%'> <#if poList?has_content> <#assign tasksFound = true> <table width='100%' border='0' cellpadding='0' cellspacing='0' class='boxbottom'> <tr> <td> <div class='head3'>${uiLabelMap.OrderOrderPurchaseToBeScheduled}</div> <table width='100%' cellpadding='2' cellspacing='0' border='0'> <tr> <td><div class="tableheadtext">${uiLabelMap.OrderOrderNumber}</div></td> <td><div class="tableheadtext">${uiLabelMap.CommonName}</div></td> <td><div class="tableheadtext">${uiLabelMap.OrderOrderDate}</div></td> <td><div class="tableheadtext">${uiLabelMap.CommonStatus}</div></td> <td width="1" align="right"><div class="tableheadtext">Items</div></td> <td width="1" align="right"><div class="tableheadtext">Total</div></td> <td width="1"> </td> <td width="1"> </td> </tr> <tr><td colspan='8'><hr class='sepbar'></td></tr> <#list poList as orderHeaderAndRole> <#assign orh = Static["org.ofbiz.order.order.OrderReadHelper"].getHelper(orderHeaderAndRole)> <#assign statusItem = orderHeaderAndRole.getRelatedOneCache("StatusItem")> <#assign placingParty = orh.getPlacingParty()?if_exists> <tr> <td><a href="<@ofbizUrl>orderview?orderId=${orderHeaderAndRole.orderId}</@ofbizUrl>" class='buttontext'>${orderHeaderAndRole.orderId}</a></td> <td> <div class='tabletext'> <#assign partyId = "_NA_"> <#if placingParty?has_content> <#assign partyId = placingParty.partyId> <#if placingParty.getEntityName() == "Person"> <#if placingParty.lastName?exists> ${placingParty.lastName}<#if placingParty.firstName?exists>, ${placingParty.firstName}</#if> <#else> N/A </#if> <#else> <#if placingParty.groupName?exists> ${placingParty.groupName} <#else> N/A </#if> </#if> <#else> N/A </#if> </div> </td> <td><div class="tabletext"><nobr>${orderHeaderAndRole.getString("orderDate")}</nobr></div></td> <td><div class="tabletext">${statusItem.get("description",locale)?default(statusItem.statusId?default("N/A"))}</div></td> <td align="right"><div class="tabletext">${orh.getTotalOrderItemsQuantity()?string.number}</div></td> <td align="right"><div class="tabletext"><@ofbizCurrency amount=orh.getOrderGrandTotal() isoCode=orderHeaderAndRole.currencyUom?if_exists/></div></td> <td width="1"> </td> <td align='right'> <a href="<@ofbizUrl>OrderDeliveryScheduleInfo?orderId=${orderHeaderAndRole.orderId}</@ofbizUrl>" class='buttontext'>Schedule Delivery</a> </td> </tr> </#list> </table> </td> </tr> </table> </#if> <#if partyTasks?has_content> <#assign tasksFound = true> <table width='100%' border='0' cellpadding='0' cellspacing='0' class='boxbottom'> <tr> <td> <div class='head3'>${uiLabelMap.OrderWorkflow}</div> <table width='100%' cellpadding='2' cellspacing='0' border='0'> <tr> <td><a href="<@ofbizUrl>tasklist?sort=orderId</@ofbizUrl>" class="tableheadbutton">${uiLabelMap.OrderOrderNumber}</a></td> <td><a href="<@ofbizUrl>tasklist?sort=name</@ofbizUrl>" class="tableheadbutton">${uiLabelMap.CommonName}</a></td> <td><a href="<@ofbizUrl>tasklist?sort=orderDate</@ofbizUrl>" class="tableheadbutton">${uiLabelMap.OrderOrderDate}</a></td> <td width="1" align="right"><a href="<@ofbizUrl>tasklist?sort=grandTotal</@ofbizUrl>" class="tableheadbutton">Total</a></td> <td width="1"> </td> <td><a href="<@ofbizUrl>tasklist?sort=actualStartDate</@ofbizUrl>" class="tableheadbutton">${uiLabelMap.OrderStartdateTime}</a></td> <td><a href="<@ofbizUrl>tasklist?sort=priority</@ofbizUrl>" class="tableheadbutton">${uiLabelMap.CommonPriority}</a></td> <td><a href="<@ofbizUrl>tasklist?sort=currentStatusId</@ofbizUrl>" class="tableheadbutton">${uiLabelMap.CommonMyStatus}</a></td> </tr> <tr><td colspan='8'><hr class='sepbar'></td></tr> <#list partyTasks as task> <tr> <td> <#assign orderStr = "orderId=" + task.orderId + "&partyId=" + userLogin.partyId + "&roleTypeId=" + task.roleTypeId + "&workEffortId=" + task.workEffortId + "&fromDate=" + task.get("fromDate").toString()>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -