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

📄 room_sc.jsp

📁 JSP移动商品管理平台源代码.........
💻 JSP
字号:
<%@ page language="java"
	import="java.util.*,imis_hous.com.impl.*,imis_hous.com.bean.*,common.DepartmentsBean"
	pageEncoding="GB2312"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
    
    <title>房间信息删除</title>
    
	
	<link href="/Imis/imis_hous/css/style.css"  rel="stylesheet" type="text/css">
  </head>
  <script type="text/javascript">
      function DeleteSubmit(){ 
			var ask = confirm("你确定删除该记录吗?");
			if(ask){
				form1.action = "/Imis/servlet/Room_sl?id=delete";
				parent.iframe_hous_tree.location.reload();  //刷新左半边的树 框架名称在menu页面内
				form1.onsubmit="";
			}
		} 
  </script>
  <body background="/Imis/imis_hous/css/images/bg_main.png">
  <table align="center" width="100%"  class="ziti" background="/Imis/imis_hous/css/images/bg_main.png" >
				<tr>
				  <td colspan="2" align="right" background="/Imis/imis_hous/css/images/bg_main2.png" height="20"><font color="#000000"><div align="left">房间信息删除</div></font></td>
			  </tr>
			  </table>
		<form method="post" action="/Imis/servlet/Room_sl?id=check_delete">
			<table align="center" width="100%"  border="0" class="ziti" background="/Imis/imis_hous/css/images/bg_main.png" >
				<tr>
					<td width="20%" align="right">房间代号:</td>
				  <td width="80%">
					<select name="J_RoomNu" class="text1" > 
        <%
        HashMap hashDept = new GetBuildName().getDepartment("RoomNu","RoomNu","Room_Info");
        int length = hashDept.size();
		String []deptName = new String[length];//部门数组
		String []deptId= new String[length];//部门用房面积数组
		
		
		Iterator itDeptId = hashDept.keySet().iterator();//键迭代
		Iterator itDeptName = hashDept.values().iterator();//值迭代
		int i=0;
		while(itDeptId.hasNext()){
			deptId[i] = itDeptId.next().toString();
			i++;
		}
		i=0;
		while(itDeptName.hasNext()){
			deptName[i] = itDeptName.next().toString();
			i++;
		}
			
			for(int j=0;j<length;j++ ){
         	%>
         	<option value=<%=deptId[j] %>><%= deptName[j] %></option>
         <% }%>
</SELECT>
					<input type="submit" name="Submit2" value="查询" class="anniu"/>
					</td>
				</tr>	
			</table>
		</form>
		
		<c:if test="${requestScope.RoomInfo!=null}">
		
								<%
									RoomInfo aieh4 = (RoomInfo) request.getAttribute("RoomInfo");

							String temp=new GetBuildNU().getDepartmentBuName(aieh4.getBuildingNu(),aieh4.getRoomNu());						
						//	if(temp==null){
								%>
		<br/><hr/>

			<form method="post" action="/Imis/servlet/Room_sl?id=delete" name="form1">
			<table align="center" width="514" border="0" class="ziti" background="images/bg_main.png">
					<tr>
					<td width="20%" align="right">房间代号:</td>
					<td width="80%">
						<input type="text" name="J_RoomNu" class="text1" value="${requestScope.RoomInfo.roomNu}" readonly="readonly"/>
					</td>
				</tr>
				<tr>					
					<td align="right">建筑物名称:</td>
					<td><input type="text" name="J_BuildingNu" class="text1" 
					value="<%= temp%>" readonly="readonly"/></td>
				</tr>
				<tr>
					<td align="right">楼层:</td>
					<td><input type="text" name="J_LayerNu" class="text1" value="${requestScope.RoomInfo.layerNu}" readonly="readonly"/></td>
				</tr>
				<tr>
					<td align="right">房间大小:</td>
					<td><input type="text" name="J_RoomArea" class="text1" value="${requestScope.RoomInfo.roomArea}" readonly="readonly"/></td>
				</tr>
				<tr>
					<td align="right">房间朝向:</td>
					<td>
					 <input type="text" name="J_RoomDirect" class="text1"
								value="${requestScope.RoomInfo.roomDirect}" />
						</td>
				</tr>
				<tr>
					<td align="right">房间状况:</td>
					<td><input type="text" name="J_RoomStatus" class="text1" value="${requestScope.RoomInfo.roomStatusToString}" readonly="readonly"/></td>
				</tr>
				<tr>
					<td align="right">使用标志:</td>
					<td><input type="text" name="J_RoomUseFlag" class="text1" value="${requestScope.RoomInfo.roomUseFlagToString}" readonly="readonly"/>
					</td>
				</tr>
                                <tr>
					<td align="right">使用部门:</td>
					<td>
				    <input type="text" name="J_UseDept" value="${requestScope.RoomInfo.useDeptToString}" class="text1"/>
				</td>
				
				</tr>
				
				<tr>
					<td align="right">备注:</td>
					<td><input type="text" name="J_Memo" class="text1" value="${requestScope.RoomInfo.memo}" readonly="readonly"/></td>
				</tr>
				<tr>
				  <td>&nbsp;&nbsp;</td>
				  <td>&nbsp;&nbsp;</td>
			  </tr>
				<tr>
					<td></td>
					<td align="left"><input type="submit" name="Submit" value="删  除" class="anniu" onclick="DeleteSubmit()"/></td>
				</tr>	
				<%//} %>			
			</table>
		</form>
		</c:if>
  </body>
</html>

⌨️ 快捷键说明

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