⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 client_node_modify.jsp

📁 java大型企业DRP系统源码带sql数据库
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GB18030"
    pageEncoding="GB18030"%> 
<%@ page import="com.bjsxt.drp.basedata.*" %>   
<%
    	boolean success = false;
    	int id = Integer.parseInt(request.getParameter("id"));
    	String command = request.getParameter("command");
    	if (command != null && command.equals("modify")) {
    		String name=request.getParameter("name");
    		ClientManager.getInstance().modifyRegion(id, name);
    		out.println("提示:修改区域名称成功!");
    		success = true;
    	}
    	Client client = ClientManager.getInstance().findRegionOrClientById(id);    	
    %>       
<html>
	<head>
		<link rel="stylesheet" href="../style/drp.css" />
		<script src="../script/client_validate.js"></script>
		<meta http-equiv="Content-Type" content="text/html; charset=GB18030" />
		<title>修改区域节点</title>
		<script type="text/javascript">

	<%
		if (success) {
	%>
	//alert("修改区域名称成功");
	window.parent.frames['clientTreeFrame'].location.reload(true);
	<%
		}
	%>
	
	function modifyRegion() {
		if (document.regionForm.name.value == "") {
			alert("请输入区域名称!");
			return;
		}
		document.regionForm.method = "post";
		document.regionForm.action = "client_node_modify.jsp?command=modify&id=<%=id%>";
		document.regionForm.submit();
	}
	
	function goBack() {
		window.self.location = "client_node_crud.jsp?command=modify&id=<%=id%>";
	}
</script>
	</head>

	<body class="body1">
		<form id="regionForm" name="regionForm" 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_03.gif" width="14" height="14" />
						&nbsp;
						<b>基础数据管理&gt;&gt;分销商维护&gt;&gt;修改区域节点</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">
							<font color="#FF0000">*</font>区域名称:
						</div>
					</td>
					<td width="410">
						<label>
							<input name="name" type="text" class="text1" value=<%=client.getName() %> id="name"/>
				</tr>
			</table>
			<p></p>
			<label>
				<br />
			</label>
			<hr />
			<p align="center">
				<input name="btnModify" class="button1" type="button" id="btnModify"
					value="修改" onClick="modifyRegion()" />
				&nbsp;&nbsp;&nbsp;&nbsp;
				<input name="btnModify" class="button1" type="button" id="btnModify"
					value="返回" onclick="goBack()" />
			</p>
		</form>
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -