📄 client_crud.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GB18030"
pageEncoding="GB18030"%>
<%@ page import="com.bjsxt.drp.basedata.*" %>
<%
int id = Integer.parseInt(request.getParameter("id"));
Client client = ClientManager.getInstance().findRegionOrClientById(id);
String command = request.getParameter("command");
if (command != null && command.equals("delete")) {
ClientManager.getInstance().deleteTreeNodeById(id);
response.sendRedirect("client_crud.jsp?id=" + client.getPid());
}
%>
<html>
<head>
<link rel="stylesheet" href="../style/drp.css" />
<meta http-equiv="Content-Type" content="text/html; charset=GB18030" />
<title>分销商维护</title>
<script type="text/javascript">
function modifyClient() {
window.self.location="client_modify.jsp?id=<%=id%>";
}
function deleteClient() {
if (window.confirm("确定删除此分销商吗?")){
document.clientForm.method = "post";
document.clientForm.action = "client_crud.jsp?command=delete&id=<%=id%>";
document.clientForm.submit();
}
}
function viewDetail() {
self.location="client_detail.jsp?id=<%=client.getId()%>";
}
</script>
</head>
<body class="body1">
<form id="clientForm" name="clientForm" method="post" action="">
<table width="95%" border="0" cellspacing="0" cellpadding="0"
height="8">
<tr>
<td width="522" class="p1" height="2" nowrap="nowrap">
<img src="../images/mark_arrow_02.gif" width="14" height="14" />
<b>基础数据管理>>分销商维护</b>
</td>
</tr>
</table>
<hr width="97%" align="center" size="0" />
<p>
<p>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="213">
<div align="right">
当前分销商名称:
</div>
</td>
<td width="410">
<label>
<input name="clientName" type="text" size="40" class="text1" value="<%=client.getName() %>"
id="clientName" readonly="true" />
</label>
</td>
</tr>
</table>
<p>
<label>
<br />
</label>
<hr />
<p align="center">
<input name="btnModifyClient" type="button" class="button1"
id="btnModifyClient" onClick="modifyClient()"
value="修改分销商" />
<input name="btinDeleteClient" type="button" class="button1"
id="btinDeleteClient" value="删除分销商" onclick="deleteClient()"/>
<input name="btnViewDetail" type="button" class="button1"
id="btnViewDetail" onClick="viewDetail()"
value="查看详细信息" />
</p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -