addcompany.jsp
来自「开源项目CRM之OpenCustomer」· JSP 代码 · 共 119 行
JSP
119 行
<%-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (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.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is the OpenCustomer CRM.
-
- The Initial Developer of the Original Code is
- Thomas Bader (Bader & Jene Software-Ingenieurb黵o).
- Portions created by the Initial Developer are Copyright (C) 2005
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
- Thomas Bader <thomas.bader@bader-jene.de>
-
- ***** END LICENSE BLOCK ***** --%>
<%@ include file="/tiles/page.jsp" %>
<%@ page import="java.util.List" %>
<%@ page import="org.opencustomer.application.db.dao.crm.CompanyDAO" %>
<%@ page import="org.opencustomer.application.web.module.crm.contact.Constants" %>
<%@ page import="org.opencustomer.application.db.vo.crm.ContactVO" %>
<%@ page import="org.opencustomer.application.db.vo.crm.PersonContactVO" %>
<tiles:insert definition="standard">
<tiles:put name="page.title"><bean:message key="domain.crm.addCompany.headLine"/></tiles:put>
<tiles:put name="page.content">
<script language="JavaScript" type="text/javascript">
<!--
function edit(i) {
document.location="<%=response.encodeURL(request.getContextPath()+"/crm/contact/company/addCompany.do?id=")%>"+i;
}
//-->
</script>
<html:form action="/crm/contact/company/addCompany" focus="companyName" styleClass="list" style="width: 500px;">
<html:hidden property="sort"/>
<fieldset class="search">
<legend><bean:message key="default.group.search"/></legend>
<table class="search">
<colgroup>
<col/>
<tr>
<td>
<buj:label property="companyName" errorStyleId="error"><bean:message key="entity.crm.company.companyName"/></buj:label>
<html:text property="companyName" styleId="companyName"/>
</td>
</tr>
</table>
<div class="action">
<html:image property="doSearch" pageKey="icon.search.url" styleClass="default"/>
<html:image property="doResetSearch" pageKey="icon.searchClean.url" titleKey="icon.searchClean.text" altKey="icon.searchClean.text"/>
<html:image property="doSearch" pageKey="icon.search.url" titleKey="icon.search.text" altKey="icon.search.text"/>
</div>
</fieldset>
<fieldset class="listAction"><%
ContactVO contact = (ContactVO)request.getSession().getAttribute(Constants.CONTACT_CONTACT);
List<PersonContactVO> pcList = (List<PersonContactVO>)session.getAttribute(Constants.CONTACT_PERSONS);
if((pcList != null && pcList.size() > 0) && contact.getCompany() != null) {%>
<html:image property="doRemove" pageKey="icon.delete.url" titleKey="icon.delete.text" altKey="icon.delete.text"/><%
} else { %>
<html:image property="doRemove" pageKey="icon.delete_grey.url" titleKey="icon.delete_grey.text" altKey="icon.delete_grey.text" disabled="true"/><%
}%>
<html:image property="doBack" pageKey="icon.back.url" titleKey="icon.back.text" altKey="icon.back.text"/>
</fieldset>
<fieldset class="list">
<legend>
<buj:paginationInfo
textKey="domain.crm.person.company.showCompanies.pagination"
name="crm.contact.company.listScroll"
scope="request"/>
</legend>
<div class="pagination">
<buj:paginationMenu
name="crm.contact.company.listScroll"
scope="request"/>
</div>
<table class="result">
<colgroup>
<col/>
</colgroup>
<tr>
<th>
<buj:sort
messageKey="entity.crm.company.companyName"
property="<%=String.valueOf(CompanyDAO.SORT_COMPANYNAME)%>"/>
</th>
</tr>
<logic:iterate id="data" indexId="index" name="crm.contact.company.list" scope="request">
<tr class="<buj:rowSwap name="index" number="3" odd="rowOdd" even="rowEven"/>" onmouseover="this.className='rowActive';" onmouseout="this.className='<buj:rowSwap name="index" number="3" odd="rowOdd" even="rowEven"/>'">
<td onclick="edit(<bean:write name="data" property="id" scope="page"/>);">
<bean:write name="data" property="companyName" scope="page"/>
</td>
</tr>
</logic:iterate>
<logic:notPresent name="index" scope="page">
<tr class="noRow">
<td><bean:message key="default.message.noEntries"/></td>
</tr>
</logic:notPresent>
</table>
</fieldset>
</html:form>
</tiles:put>
</tiles:insert>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?