⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mytasks.ftl

📁 国外的一套开源CRM
💻 FTL
字号:
<#--
 *  Copyright (c) 2001 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     Johan Isacsson (conversion of jsp created by David E. Jones)
 *@author     Eric.Barbier@nereide.biz (migration to uiLabelMap)
 *@created    May 13 2003
 *@version    1.3
-->
<#assign uiLabelMap = requestAttributes.uiLabelMap>

<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='40%' >
            <div class='boxhead'>${uiLabelMap.WorkEffortMyCurrentTaskList}</div>
          </td>
          <td align=right width='60%'>
            <a href='<@ofbizUrl>/mytasks</@ofbizUrl>' class='submenutext'>${uiLabelMap.WorkEffortTaskList}</a><a href='<@ofbizUrl>/task</@ofbizUrl>' class='submenutextright'>${uiLabelMap.WorkEffortNewTask}</a>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width='100%'>
      <table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
        <tr>
          <td>
              <div class='head3'>${uiLabelMap.WorkEffortAssignedTasks}</div>
              <table width='100%' cellpadding='2' cellspacing='0' border='0'>
                <tr>
                  <td><div class='tabletext'><b>${uiLabelMap.CommonStartDateTime}</b></div></td>
                  <td><div class='tabletext'><b>${uiLabelMap.WorkEffortPriority}</b></div></td>
                  <td><div class='tabletext'><b>${uiLabelMap.WorkEffortStatus}</b></div></td>
                  <td><div class='tabletext'><b>${uiLabelMap.WorkEffortTaskName}</b></div></td>
                  <td align=right><div class='tabletext'><b>${uiLabelMap.CommonEdit}</b></div></td>
                </tr>
                <tr><td colspan='5'><HR class='sepbar'></td></tr>
                <#list tasks as workEffort>
                  <tr>
                    <td><div class='tabletext'>${(workEffort.estimatedStartDate.toString())?if_exists}</div></td>
                    <td><div class='tabletext'>${workEffort.priority?if_exists}</div></td>
                    <td><div class='tabletext'>${(delegator.findByPrimaryKeyCache("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", workEffort.getString("currentStatusId"))).description)?if_exists}</div></td>
                    <td><A class='buttontext' href='<@ofbizUrl>/task?workEffortId=${workEffort.workEffortId}</@ofbizUrl>'>
                        ${workEffort.workEffortName}</a></div></td>
                    <td align=right width='1%'><A class='buttontext' href='<@ofbizUrl>/task?workEffortId=${workEffort.workEffortId}</@ofbizUrl>'>
                        ${uiLabelMap.CommonEdit}&nbsp;[${workEffort.workEffortId}]</a></div></td>
                  </tr>
                </#list>
              </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <#if (activities.size() > 0)>
      <tr>
        <td width='100%'>
          <table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
            <tr>
              <td>
                  <div class='head3'>${uiLabelMap.WorkEffortWorkflowActivitiesUser}</div>
                  <table width='100%' cellpadding='2' cellspacing='0' border='0'>
                    <tr>
                      <td><div class='tabletext'><b>${uiLabelMap.CommonStartDateTime}</b></div></td>
                      <td><div class='tabletext'><b>${uiLabelMap.WorkEffortPriority}</b></div></td>
                      <td><div class='tabletext'><b>${uiLabelMap.WorkEffortActivityStatus}</b></div></td>
                      <td><div class='tabletext'><b>${uiLabelMap.WorkEffortMyStatus}</b></div></td>
                      <#-- <td><div class='tabletext'><b>Party&nbsp;ID</b></div></td> -->
                      <td><div class='tabletext'><b>${uiLabelMap.PartyRoleId}</b></div></td>
                      <td><div class='tabletext'><b>${uiLabelMap.WorkEffortActivityName}</b></div></td>
                      <td align=right><div class='tabletext'><b>${uiLabelMap.CommonEdit}</b></div></td>
                    </tr>
                    <tr><td colspan='8'><HR class='sepbar'></td></tr>
                    <#list activities as workEffort>
                      <tr>
                        <td><div class='tabletext'>${(workEffort.estimatedStartDate.toString())?if_exists}</div></td>
                        <td><div class='tabletext'>${workEffort.priority?if_exists}</div></td>
                        <td><div class='tabletext'>${(delegator.findByPrimaryKeyCache("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", workEffort.getString("currentStatusId"))).description)?if_exists}</div></td>
                        <td><div class='tabletext'>${(delegator.findByPrimaryKeyCache("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", workEffort.getString("statusId"))).description)?if_exists}</div></td>
                        <#-- <td><div class='tabletext'>${workEffort.partyId}</div></td> -->
                        <td><div class='tabletext'>${workEffort.roleTypeId}</div></td>
                        <td><A class='buttontext' href='<@ofbizUrl>/activity?workEffortId=${workEffort.workEffortId}</@ofbizUrl>'>
                            ${workEffort.workEffortName}</a></div></td>
                        <td align=right><A class='buttontext' href='<@ofbizUrl>/activity?workEffortId=${workEffort.workEffortId}</@ofbizUrl>'>
                            ${uiLabelMap.CommonEdit}&nbsp;[${workEffort.workEffortId}]</a></div></td>
                      </tr>
                    </#list>
                  </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
  </#if>
  <#if (roleActivities.size() > 0)>
      <tr>
        <td width='100%'>
          <table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
            <tr>
              <td>
                  <div class='head3'>${uiLabelMap.WorkEffortWorkflowActivitiesUserRole}</div>
                  <table width='100%' cellpadding='2' cellspacing='0' border='0'>
                    <tr>
                      <td><div class='tabletext'><b>${uiLabelMap.CommonStartDateTime}</b></div></td>
                      <td><div class='tabletext'><b>${uiLabelMap.WorkEffortPriority}</b></div></td>
                      <td><div class='tabletext'><b>${uiLabelMap.WorkEffortActivityStatus}</b></div></td>
                      <td><div class='tabletext'><b>${uiLabelMap.WorkEffortMyStatus}</b></div></td>
                      <#-- <td><div class='tabletext'><b>Party&nbsp;ID</b></div></td> -->
                      <td><div class='tabletext'><b>${uiLabelMap.PartyRoleId}</b></div></td>
                      <td><div class='tabletext'><b>${uiLabelMap.WorkEffortActivityName}</b></div></td>
                      <td align=right><div class='tabletext'><b>${uiLabelMap.CommonEdit}</b></div></td>
                    </tr>
                    <tr><td colspan='8'><HR class='sepbar'></td></tr>
                    <#list roleActivities as workEffort>
                      <tr>
                        <td><div class='tabletext'>${(workEffort.estimatedStartDate.toString())?if_exists}</div></td>
                        <td><div class='tabletext'>${workEffort.priority?if_exists}</div></td>
                        <td><div class='tabletext'>${(delegator.findByPrimaryKeyCache("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", workEffort.getString("currentStatusId"))).description)?if_exists}</div></td>
                        <td><div class='tabletext'>${(delegator.findByPrimaryKeyCache("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", workEffort.getString("statusId"))).description)?if_exists}</div></td>
                        <#-- <td><div class='tabletext'>${workEffort.partyId}</div></td> -->
                        <td><div class='tabletext'>${workEffort.roleTypeId}</div></td>
                        <td><A class='buttontext' href='<@ofbizUrl>/activity?workEffortId=${workEffort.workEffortId}</@ofbizUrl>'>
                            ${workEffort.workEffortName}</a></div></td>
                        <td align=right><A class='buttontext' href='<@ofbizUrl>/acceptRoleAssignment?workEffortId=${workEffort.workEffortId}&partyId=${workEffort.partyId}&roleTypeId=${workEffort.roleTypeId}&fromDate=${workEffort.fromDate.toString()}</@ofbizUrl>'>
                            ${uiLabelMap.WorkEffortAcceptAssignment}&nbsp;[${workEffort.workEffortId}]</a></div></td>
                      </tr>
                    </#list>
                  </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
  </#if>
  <#if (groupActivities.size() > 0)>
      <tr>
        <td width='100%'>
          <table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'>
            <tr>
              <td>
                  <div class='head3'>${uiLabelMap.WorkEffortWorkflowActivitiesUserGroup}</div>
                  <table width='100%' cellpadding='2' cellspacing='0' border='0'>
                    <tr>
                      <td><div class='tabletext'><b>${uiLabelMap.CommonStartDateTime}</b></div></td>
                      <td><div class='tabletext'><b>${uiLabelMap.WorkEffortPriority}</b></div></td>
                      <td><div class='tabletext'><b>${uiLabelMap.WorkEffortActivityStatus}</b></div></td>
                      <td><div class='tabletext'><b>${uiLabelMap.WorkEffortMyStatus}</b></div></td>
                      <td><div class='tabletext'><b>${uiLabelMap.PartyGroupPartyId}</b></div></td>
                      <#-- <td><div class='tabletext'><b>Role&nbsp;ID</b></div></td> -->
                      <td><div class='tabletext'><b>${uiLabelMap.WorkEffortActivityName}</b></div></td>
                      <td align=right><div class='tabletext'><b>${uiLabelMap.CommonEdit}</b></div></td>
                    </tr>
                    <tr><td colspan='8'><HR class='sepbar'></td></tr>
                    <#list groupActivities as workEffort>
                      <tr>
                        <td><div class='tabletext'>${(workEffort.estimatedStartDate.toString())?if_exists}</div></td>
                        <td><div class='tabletext'>${workEffort.priority?if_exists}</div></td>
                        <td><div class='tabletext'>${(delegator.findByPrimaryKeyCache("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", workEffort.getString("currentStatusId"))).description)?if_exists}</div></td>
                        <td><div class='tabletext'>${(delegator.findByPrimaryKeyCache("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", workEffort.getString("statusId"))).description)?if_exists}</div></td>
                        <td><div class='tabletext'>${workEffort.groupPartyId}</div></td>
                        <#-- <td><div class='tabletext'>${workEffort.roleTypeId}</div></td> -->
                        <td><A class='buttontext' href='<@ofbizUrl>/activity?workEffortId=${workEffort.workEffortId}</@ofbizUrl>'>
                            ${workEffort.workEffortName}</a></div></td>
                        <td align=right><A class='buttontext' href='<@ofbizUrl>/acceptassignment?workEffortId=${workEffort.workEffortId}&partyId=${workEffort.partyId}&roleTypeId=${workEffort.roleTypeId}&fromDate=${workEffort.fromDate}</@ofbizUrl>'>
                            ${uiLabelMap.WorkEffortAcceptAssignment}&nbsp;[${workEffort.workEffortId}]</a></div></td>
                      </tr>
                    </#list>
                  </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
  </#if>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -