📄 client_node_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_node_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 addRegion() {
window.self.location = "client_node_add.jsp?id=<%=id%>";
}
function modifyRegion() {
window.self.location = "client_node_modify.jsp?id=<%=id%>";
}
function deleteRegion() {
if (window.confirm("确认删除此条数据吗?")) {
document.clientForm.method="post";
document.clientForm.action="client_node_crud.jsp?command=delete&id=<%=id%>";
document.clientForm.submit();
}
}
function addClient() {
window.self.location = "client_add.jsp?id=<%=id%>";
}
</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>
<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="name" type="text" class="text1" id="name" value="<%=client.getName() %>" readonly="true"/>
</label></td>
</tr>
</table>
<p></p>
<label><br />
</label>
<hr />
<p align="center">
<input name="btnAddRegion" type="button" class="button1" id="btnAddRegion" onClick="addRegion()" value="添加区域"/>
<%
if (client.getPid() != 0) {
%>
<input name="btnDeleteRegion" type="button" class="button1" id="btnDeleteRegion" value="删除区域" onClick="deleteRegion()"/>
<%
}
%>
<input name="btnModifyRegion" type="button" class="button1" id="btnModifyRegion" onClick="modifyRegion()" value="修改区域"/>
<input name="btnAddClient" type="button" class="button1" id="btnAddClient" onClick="addClient()" value="添加分销商"/>
</p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -