📄 salechancemanager.jsp
字号:
<%@ page language="java" import="com.t53.crm4.common.PaginationBean"
pageEncoding="GBK"%>
<%
String strpath = request.getContextPath();
%>
<%@ include file="/include.inc"%>
<link rel="stylesheet"
href="${pageContext.request.contextPath }/css/confirm.css"
type="text/css"></link>
<link rel="stylesheet" href="<%=strpath%>/css/styles.css"
type="text/css"></link>
<script type="text/javascript" src="<%=strpath%>/js/ty_alert_msg.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/js/jquery-1.2.3.min.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/js/jquery-impromptu.1.5.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath }/js/ty_alert_msg.js"></script>
<html>
<head>
<title>销售机会管理</title>
<script type="text/javascript">
//按钮操作
function _newsubmit(newsalchance){
document.forms[0].action = "${pageContext.request.contextPath}/chance.do?o=" +newsalchance;
document.forms[0].submit();
}
//分页操作
function sub(page){
var reg =/^\d+$/;
if(!reg.test(document.getElementById("pagbean.perCount").value)
||!reg.test(document.getElementById("pagbean.pageCount").value)
||document.getElementById("pagbean.perCount").value==0||document.getElementById("pagbean.pageCount").value==0){
alert("分页条数和页数必须为正整数!");
return false;
}
document.getElementById("pagbean.operate").value=page;
document.forms[0].submit();
}
//删除按钮
var txt = "确定要删除吗?";
function del(id){
jQuery.noConflict();
jQuery.prompt(txt,{
buttons:{确定:true, 取消:false},
callback: function(v,m){
if(v){
document.forms[0].action = "${pageContext.request.contextPath }/chance.do?o=dodelete&id="+id;
document.forms[0].submit();
}
},
prefix:'cleanblue'
});
}
//编辑按钮
function edit(id){
document.forms[0].action="${pageContext.request.contextPath}/chance.do?o=toEdit&id="+id;
document.forms[0].submit();
}
//指派按钮
function assign(id){
document.forms[0].action="${pageContext.request.contextPath}/chance.do?o=toAssign&id="+id;
document.forms[0].submit();
}
function init(){
if('${requestScope.message}'!=null && '${requestScope.message}' != ""){
show('${requestScope.message}');
}
}
</script>
</head>
<body onload="init();">
<html:form action="/chance.do?o=doList" method="post">
<!-- 显示操作 -->
<div id="show_alt" class="alt_css"></div>
<div class="page_title">
销售机会管理
</div>
<div class="button_bar">
<font color="red"> ${requestScope.message}</font>
<button class="common_button" onclick="help('');">
帮助
</button>
<button class="common_button"
onclick="javascript:_newsubmit('toAdd');">
新建
</button>
<button class="common_button"
onclick="javascript:_newsubmit('doList');">
查询
</button>
</div>
<table class="query_form_table">
<tr>
<th>
客户名称
</th>
<td>
<html:text property="salItem.chcCustName"></html:text>
</td>
<th>
概要
</th>
<td>
<html:text property="salItem.chcTitle"></html:text>
</td>
<th>
联系人
</th>
<td>
<html:text property="salItem.chcLinkman"></html:text>
</td>
</tr>
</table>
<br />
<table class="data_list_table">
<tr>
<th>
编号
</th>
<th>
客户名称
</th>
<th>
概要
</th>
<th>
联系人
</th>
<th>
联系人电话
</th>
<th>
创建时间
</th>
<th>
操作
</th>
</tr>
<!-- 从这里开始循环这一行 -->
<c:forEach items="${requestScope.sallist}" var="salItem">
<tr>
<td class="list_data_number">
${salItem.chcId}
</td>
<td class="list_data_text">
${salItem.chcCustName}
</td>
<td class="list_data_ltext" align="center">
${salItem.chcTitle}
</td>
<td class="list_data_text">
${salItem.chcLinkman}
</td>
<td class="list_data_text">
${salItem.chcTel}
</td>
<td class="list_data_text">
<bean:write name="salItem" property="chcCreateDate"
format="yyyy-MM-dd hh:mm:ss" />
</td>
<td class="list_data_op">
<!--
对未分配的销售机会进行编辑
登录用户为销售主管才能指派
-->
<c:if
test="${sessionScope.USER.sysRole.roleId eq 3 and salItem.chcStatus eq 1}">
<img onclick="assign(${salItem.chcId})" title="指派"
src="<%=request.getContextPath()%>/images/bt_linkman.gif"
class="op_button" />
</c:if>
<c:if test="${salItem.chcCreateId eq USER.usrId}">
<img onclick="edit(${salItem.chcId});" title="编辑"
src="<%=request.getContextPath()%>/images/bt_edit.gif"
class="op_button" />
</c:if>
<c:if test="${salItem.chcCreateId eq USER.usrId}">
<img onclick="del(${salItem.chcId});" name="${salItem.chcId}"
title="删除"
src="<%=request.getContextPath()%>/images/bt_del.gif"
class="op_button" />
</c:if>
</td>
</tr>
</c:forEach>
<c:if test="${empty requestScope.sallist}">
<tr>
<td class="data_cell" colspan="20"
style="text-align: center; height: 40px;">
没有记录
</td>
</tr>
</c:if>
</table>
<table class="data_list_table">
<!-- 循环该行结束 -->
<!-- 隐藏域 -->
<html:hidden styleId="pagbean.operate" property="pagbean.operate" />
<tr>
<th colspan="7" class="pager">
<div class="pager">
共
<span><html:hidden property="pagbean.maxinum" write="true" />
</span>条记录 每页
<html:text property="pagbean.perCount" size="3"
style="text-align: center;"></html:text>
条 第
<html:hidden property="pagbean.pageCount" write="true" />
<span>${pagbean.pageCount}</span> 页/共
<span><html:hidden property="pagbean.pageNum" write="true" />
</span>页
<button class="common_button"
onclick="sub('<%=PaginationBean.FIRST%>')">
首页
</button>
<button class="common_button"
onclick="sub('<%=PaginationBean.PREVIOUS%>')">
上一页
</button>
<button class="common_button"
onclick="sub('<%=PaginationBean.NEXT%>')">
下一页
</button>
<button class="common_button"
onclick="sub('<%=PaginationBean.LAST%>')">
尾页
</button>
转到
<html:text property="pagbean.pageCount" size="3"
style="text-align: center;"></html:text>
页
<input type="button" class="common_button" value="跳转"
onclick="sub('')">
</div>
</th>
</tr>
</table>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -