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

📄 editcommunication.ftl

📁 国外的一套开源CRM
💻 FTL
📖 第 1 页 / 共 2 页
字号:
<#--
 *  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     Olivier Heintz (olivier.heintz@nereide.biz) 
 *@version    $Revision: 1.5 $
 *@since      2.2
-->

<#assign uiLabelMap = requestAttributes.uiLabelMap>
<#if security.hasEntityPermission("PARTYMGR", "_VIEW", session)>
<#-- Main Heading -->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr>
    <td align="left">
      <div class="head1">${uiLabelMap.PartyCommunicationsWith}
        <#if lookupPerson?exists>
          ${lookupPerson.personalTitle?if_exists}
          ${lookupPerson.firstName?if_exists}
          ${lookupPerson.middleName?if_exists}
          ${lookupPerson.lastName?if_exists}
          ${lookupPerson.suffix?if_exists}
        <#else>
          <#if lookupGroup?exists>
            ${lookupGroup.groupName?default(uiLabelMap.PartyNoNameGroup)}
          <#else>
          "${uiLabelMap.PartyNewUser}"
          </#if>
        </#if>
      </div>
    </td>
    <td align="right">
	  <div class="tabContainer">
        <a href="<@ofbizUrl>/viewprofile?partyId=${partyId}</@ofbizUrl>" class="tabButton">${uiLabelMap.PartyProfile}</a>
        <a href="<@ofbizUrl>/viewvendor?partyId=${partyId}</@ofbizUrl>" class="tabButton">${uiLabelMap.PartyVendor}</a>
        <a href="<@ofbizUrl>/viewroles?partyId=${partyId}</@ofbizUrl>" class="tabButton">${uiLabelMap.PartyRoles}</a>
        <a href="<@ofbizUrl>/viewrelationships?partyId=${partyId}</@ofbizUrl>" class="tabButton">${uiLabelMap.PartyRelationships}</a>
        <a href="<@ofbizUrl>/viewcommunications?partyId=${partyId}</@ofbizUrl>" class="tabButtonSelected">${uiLabelMap.PartyCommunications}</a>
      </div>
    </td>
  </tr>
  <tr>
    <td colspan="2" align="right" nowrap>
      <a href="<@ofbizUrl>/viewCommunicationEvent?partyId=${partyId}</@ofbizUrl>" class="buttontext">[${uiLabelMap.PartyNewCommunication}]</a>
      <#if communicationEvent?has_content>
        <a href="/workeffort/control/task?communicationEventId=${communicationEvent.communicationEventId}${requestAttributes.externalKeyParam}" class="buttontext">[${uiLabelMap.PartyNewTask}]</a>
        <a href="/workeffort/control/event?communicationEventId=${communicationEvent.communicationEventId}${requestAttributes.externalKeyParam}" class="buttontext">[${uiLabelMap.PartyNewEvent}]</a>
      </#if>
    </td>
  </tr>
</table>

<br>
<#if communicationEvent?has_content>
  <#assign formAction = "/updateCommunicationEvent">
  <#assign buttonText = uiLabelMap.CommonUpdate>
  <#if communicationEvent.statusId?exists && (communicationEvent.statusId == "COM_COMPLETE" || communicationEvent.statusId == "COM_RESOLVED" || communicationEvent.statusId == "COM_REFERRED")>
    <#assign okayToUpdate = false>
  <#else>
    <#assign okayToUpdate = true>
  </#if>
<#else>
  <#assign formAction = "/createCommunicationEvent">
  <#assign buttonText = uiLabelMap.CommonCreate>
  <#assign okayToUpdate = true>
</#if>  
<table width="100%" border="0" cellpadding="2" cellspacing="0">
  <#if communicationEvent?has_content>
    <#assign eventPurposes = communicationEvent.getRelated("CommunicationEventPurpose")>             
    <tr>
      <td width="20%" align="right"><span class="tableheadtext">${uiLabelMap.PartyEventPurpose}</span></td>
      <td width="1">&nbsp;</td>
      <td>
        <table border='0' cellspacing='1' bgcolor='black'>
          <#if eventPurposes?has_content> 
            <#list eventPurposes as purpose>
              <#assign purposeType = purpose.getRelatedOne("CommunicationEventPrpTyp")>
              <tr>
                <td bgcolor='white'>
                  <div class="tabletext">&nbsp;<b>${purposeType.description} - ${purpose.description?if_exists}</b></div>
                </td>
                <#if okayToUpdate>
                <td bgcolor='white'>
                  <a href="<@ofbizUrl>/removeCommunicationEventPurpose?partyId=${partyId}&communicationEventPrpTypId=${purposeType.communicationEventPrpTypId}&communicationEventId=${communicationEvent.communicationEventId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDelete}</a>
                </td>
                </#if>
              </tr>
            </#list>          
          </#if>
          <#if okayToUpdate>
          <form method="post" name="addeventpurpose" action="<@ofbizUrl>/createCommunicationEventPurpose</@ofbizUrl>">
            <input type="hidden" name="communicationEventId" value="${communicationEvent.communicationEventId}">
            <input type="hidden" name="partyId" value="${partyId}">
            <tr>
              <td bgcolor="white">
                <select name="communicationEventPrpTypId" class="selectBox">
                  <#list purposeTypes as purpose>
                    <option value="${purpose.communicationEventPrpTypId}">${purpose.description}</option>
                  </#list>
                </select>
                <input type="text" class="inputBox" name="description" size="15">
              </td>
              <td bgcolor="white"><a href="javascript:document.addeventpurpose.submit()" class="buttontext">${uiLabelMap.PartyAddPurpose}</a></td>
            </tr>
          </form>
          </#if>
        </table>          
      </td>
    </tr>
    <tr><td colspan="3">&nbsp;</td></tr>  
    <#assign eventRoles = communicationEvent.getRelated("CommunicationEventRole")>
    <tr>
      <td width="20%" align="right"><span class="tableheadtext">${uiLabelMap.PartyRoles}</span></td>
      <td width="1">&nbsp;</td>
      <td>
        <table border='0' cellspacing='1' bgcolor='black'>
          <#if eventRoles?has_content>
            <#list eventRoles as eventRole>
              <#assign roleType = eventRole.getRelatedOne("RoleType")>
              <tr>
                <td bgcolor='white'>
                  <div class="tabletext">&nbsp;<b>${eventRole.partyId} - ${roleType.description}</b></div>
                </td>
                <#if okayToUpdate>
                <td bgcolor='white'>
                  <a href="<@ofbizUrl>/removeCommunicationEventRole?party_id=${partyId}&partyId=${eventRole.partyId}&roleTypeId=${eventRole.roleTypeId}&communicationEventId=${communicationEvent.communicationEventId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDelete}</a>
                </td>
                </#if>
              </tr>
            </#list>
          </#if>
          <#if okayToUpdate>
          <tr>
            <form method="post" name="addeventrole" action="<@ofbizUrl>/createCommunicationEventRole</@ofbizUrl>">
              <input type="hidden" name="communicationEventId" value="${communicationEvent.communicationEventId}">
              <input type="hidden" name="party_id" value="${partyId}">
              <td bgcolor='white'>
                <select name="roleTypeId" class="selectBox">
                  <#list roleTypes as roleType>
                     <option value="${roleType.roleTypeId}">${roleType.description}</option>
                  </#list>
                </select>
                <input type="text" class="inputBox" name="partyId" size="10">
              </td>
              <td bgcolor="white"><a href="javascript:document.addeventrole.submit()" class="buttontext">${uiLabelMap.PartyAddRole}</a></td>     
            </form>
          </tr>
          </#if>
        </table>
      </td>
    </tr>
    <tr><td colspan="3">&nbsp;</td></tr>
  </#if>
  <form name="addevent" method="post" action="<@ofbizUrl>${formAction}</@ofbizUrl>" style="margin: 0;">  
    <input type="hidden" name="partyId" value="${partyId}">
    <input type="hidden" name="partyIdFrom" value="${partyId}">
    <input type="hidden" name="partyIdTo" value="${sessionAttributes.userLogin.partyId}">
    <#if communicationEvent?has_content>      
      <input type="hidden" name="communicationEventId" value="${communicationEvent.communicationEventId}">      
    </#if>

⌨️ 快捷键说明

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