📄 visitlist.jsp
字号:
<%@ page contentType="text/html;charset=utf-8" errorPage="../../error.jsp"%>
<%@page import="sys.dao.bean.Personnel"%>
<%@page import="java.util.List"%>
<%@page import="sys.dao.bean.Dept"%>
<%@ include file="/page/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查询拜访记录</title>
<link href="css/inside.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script language="JavaScript" type="text/javascript" src="js/changedate.js"></script>
<script type="text/javascript" language="JavaScript">
var v_request;
function sendRequest()
{
v_request=new ActiveXObject("Msxml2.XMLHTTP");
v_request.onreadystatechange=getResult;
//确定url
var url="deptAjax?deptid="+form1.deptid.value;
v_request.open("GET",url,true);
v_request.setRequestHeader("If-Modified-Since","0");
//发送请求
v_request.send(null);
}
function getResult()
{
if(v_request.readyState==4)//如果结束
{
if(v_request.status==200) //如果成功
{
document.getElementById('per').innerHTML='<select name="personnelid"><option value="" selected="selected">--请选择--</option>'+v_request.responseText+'</select>'
}
}
}
</script>
<div class="title">
<h2>查询拜访记录</h2>
</div>
<form action="fvList" name="form1">
<table width="100%" border="0" cellpadding="8" cellspacing="1" class="contentArea">
<tr>
<td class="searchBar">
部门:<select name="deptid" onChange="sendRequest();">
<option value="" selected="selected" >--请选择--</option>
<%
if(request.getSession().getAttribute("pos")!=null)
{
List<Dept> list = ((Personnel)request.getSession().getAttribute("user")).getDept().getGrade().getDepts();
for(Dept dept:list)
{
if(dept.getDeptname().indexOf(request.getSession().getAttribute("pos").toString())>=0)
{
%>
<option value="<%=dept.getDeptid() %>"><%=dept.getDeptname() %></option>
<%
}
}
}
%>
<c:if test="${sessionScope.pos==null}">
<c:forEach items="${sessionScope.user.dept.grade.depts}" var="dept">
<option value="${dept.deptid }">${dept.deptname }</option>
</c:forEach>
</c:if>
</select>
员工名:<span id="per"><select name="personnelid">
<option value="" selected="selected">--请选择--</option>
</select></span>
起始时间<input id="gotime" name="gotime" size=10 readonly="readonly" onclick="popUpCalendar(this, this, 'yyyy-mm-dd')" value="" style="cursor:hand;"/>
结束时间<input id="endtime" name="endtime" size=10 readonly="readonly" onclick="popUpCalendar(this, this, 'yyyy-mm-dd')" value="" style="cursor:hand;"/>
拜访类型<select name="visittype">
<option value="" selected="selected">--请选择--</option>
<option value="A">电话</option>
<option value="B">上门</option>
</select>
<a href="javascript:document.form1.submit();" class="pagenum">搜索</a> ${requestScope.csize }
</td>
</tr>
<tr>
<td class="contentList">
<table width="100%" border="0" cellpadding="8" cellspacing="1" class="contentListTable">
<c:forEach items="${requestScope.list}" var="a">
<tr class="contentListTd">
<td>
${a }
</td>
</tr>
</c:forEach>
<tr class="contentListTd">
<td>${requestScope.htmlPage } </td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="contentList">
<table width="100%" border="0" cellspacing="1" cellpadding="8" class="contentListTable2 spaceBottom">
<c:forEach items="${requestScope.pageRows}" var="visit">
<tr>
<td width="30" class="contentListTdColName">公司:</td>
<td width="200" class="contentListTdColName3"> ${visit.company.nameparticular }</td>
<td width="50" class="contentListTdColName">业务员:</td>
<td width="40" class="contentListTdColName3"> ${visit.personnel.realname }</td>
<td width="50" class="contentListTdColName">联系人:</td>
<td width="50" class="contentListTdColName3"> ${visit.linkman.linkmanname }</td>
<td width="30" class="contentListTdColName">职位: </td>
<td width="50" class="contentListTdColName3"> ${visit.linkman.job }</td>
<td width="30" class="contentListTdColName">电话: </td>
<td width="50" class="contentListTdColName3"> ${visit.linkman.linkmanphone }</td>
<td width="30" class="contentListTdColName">手机: </td>
<td width="40" class="contentListTdColName3"> ${visit.linkman.linkmanmoblie }</td>
</tr>
<tr>
<td class="contentListTd" colspan="12">[${visit.visittime }]-[
<c:if test="${visit.visittype=='A'}">
电话
</c:if>
<c:if test="${visit.visittype=='B'}">
上门
</c:if>
]:${visit.visitlog }</td>
</tr>
</c:forEach>
</table>
${requestScope.htmlPage }
</td>
</tr>
</table>
</form>
<div id="helpContent">
<div class="title">搜索提示:</div>
<div class="Content">请详细填写搜索内容,这样可以更加准确的搜索到您要的客户</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -