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

📄 shoufeidel.jsp

📁 基于J2EE的门诊划价系统 目 录 第1章 绪论 1 1.1 引言 1 1.2 概述 2 1.2.1 简要概述 2 1.2.2 目标 3 1.2.3 条件或限制 3 1.3 J2EE
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java"
	import="java.sql.*" errorPage=""%>
<!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=gb2312" />
		<title>无标题文档</title>
		<style type="text/css">
<!--
body {
	background-color: #93A070;
}
-->
        </style>
		<link href="css.css" rel="stylesheet" type="text/css" />
		<style type="text/css">
<!--
.STYLE2 {
	color: #FFFFFF;
	font-size: 24px;
	font-weight: bold;
}
.STYLE6 {font-size: 16px; font-weight: bold; }
.STYLE7 {font-size: 16px}
.STYLE8 {color: #000000}
-->
        </style>
	</head>
	<jsp:useBean id="Rs" scope="page" class="MyWeb.db.DBManager" />
	<%
		String sql = null;
		String type = null;
		String xmbh = null;
		String xmzl = null;
		String xmlx = null;
		String xmmc = null;
		String xmjg = null;
		String message = "";
		ResultSet rs = null;
	%>
	<%
		request.setCharacterEncoding("GB2312");
		xmbh = request.getParameter("xmbh");
		session.setAttribute("xmbh", xmbh);
		//out.println(xmbh);
		type = request.getParameter("type");
		if (type == null)
			type = "";
		sql = "select * from shoufeixm where xmbh='" + xmbh + "'";
		//out.println(sql);
		try {
			rs = Rs.executeQuery(sql);
			while (rs.next()) {
				xmbh = rs.getString("xmbh");
				xmzl = rs.getString("xmzl");
				xmlx = rs.getString("xmlx");
				xmmc = rs.getString("xmmc");
				xmjg = rs.getString("xmjg");
			}
		} catch (Exception e) {
			e.printStackTrace();
			message = "该项目被成功删除!";
		}

		if (type.equals("delete")) {
			sql = "delete from shoufeixm where xmbh='" + xmbh + "'";
			//out.println(sql);
			try {
				int i = Rs.executeUpdate(sql);
				message = "该项目被成功删除!";
			} catch (Exception e) {
				e.printStackTrace();
				message = "删除失败!";
			} finally {
				Rs.close();
			}
		}

		if (xmbh == null)
			xmbh = "";
		if (xmzl == null)
			xmzl = "";
		if (xmlx == null)
			xmlx = "";
		if (xmmc == null)
			xmmc = "";
		if (xmjg == null)
			xmjg = "";
	%>
	<body>
		<table width="500" border="0" align="center" bgcolor="#EEEEEE">
			<tr>
				<td height="30" colspan="2" align="center" valign="top"
					bgcolor="#BEC798" class="STYLE2 STYLE8">
					删除收费项目
				</td>
			</tr>
			<tr>
				<td width="150" height="200" valign="top">

					<table width="150" border="0" align="center">
						<tr>
							<td height="50" align="center">
								<span class="STYLE6"><a href="SFXM/shoufeiadd.jsp">新建收费项目</a>
								</span>
							</td>
						</tr>
						<tr>
							<td height="50" align="center">
								<span class="STYLE6"><a href="SFXM/shoufeiquery.jsp">查询收费项目</a>
								</span>
							</td>
						</tr>
						<tr>
							<td height="50" align="center">
								<span class="STYLE6"><a href="SFXM/shoufeidel.jsp">删除收费项目</a>
								</span>
							</td>
						</tr>
						<tr>
							<td height="50" align="center">
								<span class="STYLE6"><a href="../main.jsp">返回</a> </span>
							</td>
						</tr>
					</table>
				</td>
				<td width="" align="center" valign="top">
					<form id="form1" name="form1" method="post"
						action="shoufeidel.jsp?type=delete">
						<table width="100%" border="0">
							<tr>
								<td width="36%" height="35" align="center">
									<span class="STYLE7">项目编号</span>
								</td>
								<td width="64%" align="center">
									<input name="xmbh" type="text" id="xmbh" value="<%=xmbh%>"
										size="15" />
								</td>
							</tr>
							<tr>
								<td height="35" align="center">
									<span class="STYLE7">项目种类</span>
								</td>
								<td align="center">
									<input name="xmzl" type="text" id="xmzl" value="<%=xmzl%>"
										size="15" />
								</td>
							</tr>
							<tr>
								<td height="35" align="center">
									<span class="STYLE7">项目类型</span>
								</td>
								<td align="center">
									<input name="xmlx" type="text" id="xmlx" value="<%=xmlx%>"
										size="15" />
								</td>
							</tr>
							<tr>
								<td height="35" align="center">
									<span class="STYLE7">项目名称</span>
								</td>
								<td align="center">
									<input name="textarea4" type="text" id="xmmc" value="<%=xmmc%>"
										size="15" />
								</td>
							</tr>
							<tr>
								<td height="35" align="center">
									<span class="STYLE7">项目价格</span>
								</td>
								<td align="center">
									<input name="textarea5" type="text" id="xmjg" value="<%=xmjg%>"
										size="15" />
								</td>
							</tr>
							<td height="35" colspan="2" align="center">
								<label>
									<input type="submit" name="Submit" value="删除" />
								</label>
						</table>
						<center>
							<%=message%>
						</center>
					</form>
				</td>
			</tr>
		</table>
		<table width="500" height="45" border="0" align="center">

		</table>
		<hr />
	</body>
</html>

⌨️ 快捷键说明

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