?? buildings_xg.jsp
字號:
<%@ page language="java" import="java.util.*,imis_hous.com.impl.*,imis_hous.com.bean.*" 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>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="/Imis/imis_hous/css/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="/Imis/imis_hous/jf/checkdata.js">
</script>
<script language="JavaScript">
function checkValue() {
var J_BuildingNu = document.form1.J_BuildingNu.value;
if (J_BuildingNu=="") {
window.alert("請輸入建筑物代號");
document.form1.J_BuildingNu.focus();
return false;
}
if (J_BuildingNu.length > 30){
window.alert("輸入建筑物代號長度超出,限定為15個中文字符或者30個英文字符。");
document.form1.J_BuildingNu.focus();
return false;
}
var J_BuildingName = document.form1.J_BuildingName.value;
if (J_BuildingName=="") {
window.alert("請輸入建筑物名稱");
document.form1.J_BuildingName.focus();
return false;
}
if (J_BuildingName.length > 50){
window.alert("輸入建筑物名稱長度超出,限定為25個中文字符或者50個英文字符。");
document.form1.J_BuildingName.focus();
return false;
}
var J_BuildingArea = document.form1.J_BuildingArea.value;
if (J_BuildingArea!=""){
var regp = /(^[\d]{1,7}|^[\d]{1,7})($|[\.][\d]{0,2}$)/;
if (J_BuildingArea.match(regp) == null)
{
document.form1.J_BuildingArea.focus();
alert("輸入建筑物面積格式錯誤!使用“0.00”格式");
return false;
}
}
var J_BuildingLayers = document.form1.J_BuildingLayers.value;
if (J_BuildingLayers!=""){
var regp = /^\d{1,9}$/;
if (J_BuildingLayers.match(regp) == null)
{
document.form1.J_BuildingLayers.focus();
alert("輸入建筑物層數格式錯誤!必須為正整數!");
return false;
}
}
var J_Memo = document.form1.J_Memo.value;
if (J_Memo.length > 100){
window.alert("輸入建筑物備注長度超出,限定為50個中文字符或者100個英文字符。");
document.form1.J_Memo.focus();
return false;
}
var J_BuildIdNo = document.form1.J_BuildIdNo.value;
if (J_BuildIdNo.length > 50){
window.alert("輸入房產證號長度超出,限定為25個中文字符或者50個英文字符。");
document.form1.J_BuildIdNo.focus();
return false;
}
var J_IdTime = document.form1.J_IdTime.value;
if (J_IdTime=="") {
window.alert("請輸入辦證時間");
document.form1.J_IdTime.focus();
return false;
}
return true;
}
</script>
</head>
<body background="/Imis/imis_hous/css/images/bg_main.png">
<table align="center" width="100%" border="0" class="ziti">
<tr>
<td colspan="2" height="20" align="right" background="/Imis/imis_hous/css/images/bg_main2.png"><font color="#000000"><div align="left">建筑物信息修改</div></font></td>
</tr>
</table>
<form method="post" action="/Imis/servlet/Building_sl?id=check_update" onsubmit="return checkValue()">
<table align="center" width="100%" border="0" class="ziti">
<tr>
<td width="45%" align="right">建筑物名稱:</td>
<td width="55%"><select name="J_BuildingNu" class="text1">
<%
HashMap hashDept = new GetBuildName().getDepartment("BuildingNu","BuildingName","Buildings_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>
<tr>
<td colspan="2"></td>
</tr>
</table>
</form>
<c:if test="${requestScope.BuildingsInfo!=null}">
<br/><hr/>
<form method="post" action="/Imis/servlet/Building_sl?id=update" name="form1">
<table align="center" width="527" border="0" class="ziti" background="/Imis/imis_hous/css/images/bg_main.png">
<tr>
<td width="42%" align="right">建筑物代號:</td>
<td width="58%">
<input type="text" name="J_BuildingNu" class="text1" value="${requestScope.BuildingsInfo.buildingNu}" readonly="readonly"/>
</td>
</tr>
<tr>
<td align="right">地塊名稱:</td>
<td>
<select name="J_AreaNu">
<%
BuildingsInfo aieh1 = (BuildingsInfo)request.getAttribute("BuildingsInfo");
HashMap hashDept1 = new GetBuildName().getDepartment("Areanu","AreaName","area_info");
int length1 = hashDept1.size();
String []deptName1 = new String[length1];//部門數組
String []deptId1 = new String[length1];//部門用房面積數組
Iterator itDeptId1 = hashDept1.keySet().iterator();//鍵迭代
Iterator itDeptName1 = hashDept1.values().iterator();//值迭代
int i1=0;
while(itDeptId1.hasNext()){
deptId1[i1] = itDeptId1.next().toString();
i1++;
}
i1=0;
while(itDeptName1.hasNext()){
deptName1[i1] = itDeptName1.next().toString();
i1++;
}
for(int j=0;j<length1;j++ ){
%>
<option value=<%=deptId1[j]%><%if(aieh1.getAreaNu().equals(deptId1[j])){%> selected<%}%>><%= deptName1[j] %></option>
<%
}%>
</select>
</tr>
<tr>
<td align="right">建筑物名稱:</td>
<td><input type="text" name="J_BuildingName" class="text1" value="${requestScope.BuildingsInfo.buildingName}"/></td>
</tr>
<tr>
<td align="right">建筑物面積:</td>
<td><input type="text" name="J_BuildingArea" class="text1" value="${requestScope.BuildingsInfo.buildingArea}"/></td>
</tr>
<tr>
<td align="right">建筑物層數:</td>
<td><input type="text" name="J_BuildingLayers" class="text1" value="${requestScope.BuildingsInfo.buildingLayers}"/></td>
</tr>
<tr>
<td align="right">建筑物年代:</td>
<td>
<input name="J_BuildDate" id="J_BuildDate" size="10" maxlength="10" readonly="readonly" type="text" class="text1" onMouseDown="javascript:setday(form1.J_BuildDate);" value="${requestScope.BuildingsInfo.buildDate }"/>
</td>
</tr>
<tr>
<td><div align="right">房產證號:</div></td>
<td><input name="J_BuildIdNo" type="text" class="text1" size="20" maxlength="50" value="${requestScope.BuildingsInfo.buildIdNo}"/>
</td>
</tr>
<tr>
<td><div align="right">辦證時間:</div></td>
<td><input name="J_IdTime" type="text" class="text1" size="10" maxlength="10" type="text" class="text1" onMouseDown="javascript:setday(form1.J_IdTime);" value="${requestScope.BuildingsInfo.idTime }" />
<font color=red>*</font></td>
</tr>
<tr>
<td align="right">建筑物用途:</td><td><select name="J_UseFor" class="text1">
<% BuildingsInfo aieh = (BuildingsInfo)request.getAttribute("BuildingsInfo");
if(aieh.getUseFor()==1){
%>
<option selected value="1">辦公用</option>
<option value="2">出租</option>
<option value="3">居住</option>
<option value="4">其他</option>
<%}else if(aieh.getUseFor()==2){ %>
<option value="1">辦公用</option>
<option selected value="2">出租</option>
<option value="3">居住</option>
<option value="4">其他</option>
<%}else if(aieh.getUseFor()==3){ %>
<option value="1">辦公用</option>
<option value="2">出租</option>
<option selected value="3">居住</option>
<option value="4">其他</option>
<%}else if(aieh.getUseFor()==4){ %>
<option value="1">辦公用</option>
<option value="2">出租</option>
<option value="3">居住</option>
<option selected value="4">其他</option>
<%} %>
</select></td>
</tr>
<tr>
<tr>
<td align="right">備注:</td>
<td><input type="text" name="J_Memo" class="text1" value="${requestScope.BuildingsInfo.memo}"/></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td></td>
<td align="left">
<div align="left">
<input type="submit" name="Submit" value="修 改" class="anniu"/>
</div></td></tr>
</table>
</form>
</c:if>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -