📄 buildings_005fxg_jsp.java
字号:
package org.apache.jsp.imis_005fhous.Update;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import imis_hous.com.impl.*;
import imis_hous.com.bean.*;
public final class Buildings_005fxg_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_if_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_if_test.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=GB2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n\r\n\r\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
out.write("<html>\r\n ");
out.write("<head>\r\n\r\n \r\n ");
out.write("<title>建筑物信息修改");
out.write("</title>\r\n \r\n\t");
out.write("<meta http-equiv=\"pragma\" content=\"no-cache\">\r\n\t");
out.write("<meta http-equiv=\"cache-control\" content=\"no-cache\">\r\n\t");
out.write("<meta http-equiv=\"expires\" content=\"0\"> \r\n\t");
out.write("<meta http-equiv=\"keywords\" content=\"keyword1,keyword2,keyword3\">\r\n\t");
out.write("<meta http-equiv=\"description\" content=\"This is my page\">\r\n\r\n\t");
out.write("<link href=\"/Imis/imis_hous/css/style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n\t\t");
out.write("<script language=\"JavaScript\" src=\"/Imis/imis_hous/jf/checkdata.js\">\r\n");
out.write("</script>\r\n");
out.write("<script language=\"JavaScript\">\r\nfunction checkValue() {\r\nvar J_BuildingNu = document.form1.J_BuildingNu.value;\r\n if (J_BuildingNu==\"\") {\r\n \twindow.alert(\"请输入建筑物代号\");\r\n \tdocument.form1.J_BuildingNu.focus();\r\n \treturn false;\r\n \t}\r\n\t\t\tif (J_BuildingNu.length > 30){\r\n\t\twindow.alert(\"输入建筑物代号长度超出,限定为15个中文字符或者30个英文字符。\");\r\n \t\tdocument.form1.J_BuildingNu.focus();\r\n \t\treturn false;\r\n\t\t}\r\n\t\t\r\nvar J_BuildingName = document.form1.J_BuildingName.value;\r\n\t\t\t if (J_BuildingName==\"\") {\r\n \twindow.alert(\"请输入建筑物名称\");\r\n \tdocument.form1.J_BuildingName.focus();\r\n \treturn false;\r\n \t}\r\n\t\t\tif (J_BuildingName.length > 50){\r\n\t\twindow.alert(\"输入建筑物名称长度超出,限定为25个中文字符或者50个英文字符。\");\r\n \t\tdocument.form1.J_BuildingName.focus();\r\n \t\treturn false;\r\n\t\t}\r\nvar J_BuildingArea = document.form1.J_BuildingArea.value;\r\n\t\t\tif (J_BuildingArea!=\"\"){\r\n\t\t\tvar regp = /(^[\\d]{1,7}|^[\\d]{1,7})($|[\\.][\\d]{0,2}$)/;\r\n");
out.write("\t\t\t\t\tif (J_BuildingArea.match(regp) == null) \r\n\t\t\t\t{\r\n\t\t\t\t document.form1.J_BuildingArea.focus();\r\n\t\t\t\t alert(\"输入建筑物面积格式错误!使用“0.00”格式\");\r\n\t\t\t\t return false;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\tvar J_BuildingLayers = document.form1.J_BuildingLayers.value;\r\n\t\t\tif (J_BuildingLayers!=\"\"){\r\n\t\t\tvar regp = /^\\d{1,9}$/;\r\n\t\t\t\t\tif (J_BuildingLayers.match(regp) == null) \r\n\t\t\t\t{\r\n\t\t\t\t document.form1.J_BuildingLayers.focus();\r\n\t\t\t\t alert(\"输入建筑物层数格式错误!必须为正整数!\");\r\n\t\t\t\t return false;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\nvar J_Memo = document.form1.J_Memo.value;\r\n\t\t\tif (J_Memo.length > 100){\r\n\t\twindow.alert(\"输入建筑物备注长度超出,限定为50个中文字符或者100个英文字符。\");\r\n \t\tdocument.form1.J_Memo.focus();\r\n \t\treturn false;\r\n\t\t}\r\n\t\t\r\nvar J_BuildIdNo = document.form1.J_BuildIdNo.value;\r\n\t\t\tif (J_BuildIdNo.length > 50){\r\n\t\t window.alert(\"输入房产证号长度超出,限定为25个中文字符或者50个英文字符。\");\r\n \t\tdocument.form1.J_BuildIdNo.focus();\r\n \t\treturn false;\r\n\t\t}\r\n\r\n\r\n\t\t\r\nvar J_IdTime = document.form1.J_IdTime.value;\r\n if (J_IdTime==\"\") {\r\n \twindow.alert(\"请输入办证时间\");\r\n");
out.write(" \tdocument.form1.J_IdTime.focus();\r\n \treturn false;\r\n \t}\t\t\r\n\t\t\r\n\r\n\r\n\t\t\r\n\t\t\r\n return true;\r\n}\r\n\r\n");
out.write("</script>\r\n ");
out.write("</head>\r\n \r\n ");
out.write("<body background=\"/Imis/imis_hous/css/images/bg_main.png\">\r\n ");
out.write("<table align=\"center\" width=\"100%\" border=\"0\" class=\"ziti\">\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t ");
out.write("<td colspan=\"2\" height=\"20\" align=\"right\" background=\"/Imis/imis_hous/css/images/bg_main2.png\">");
out.write("<font color=\"#000000\">");
out.write("<div align=\"left\">建筑物信息修改");
out.write("</div>");
out.write("</font>");
out.write("</td>\r\n\t\t\t ");
out.write("</tr>\r\n\t\t\t ");
out.write("</table>\r\n\t\t");
out.write("<form method=\"post\" action=\"/Imis/servlet/Building_sl?id=check_update\" onsubmit=\"return checkValue()\">\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t");
out.write("<table align=\"center\" width=\"100%\" border=\"0\" class=\"ziti\">\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t ");
out.write("<td width=\"45%\" align=\"right\">建筑物名称:");
out.write("</td>\r\n\t\t\t\t ");
out.write("<td width=\"55%\">");
out.write("<select name=\"J_BuildingNu\" class=\"text1\">\r\n ");
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++ ){
out.write("\r\n ");
out.write("<option value=");
out.print(deptId[j] );
out.write(">");
out.print( deptName[j] );
out.write("</option>\r\n ");
}
out.write("\r\n ");
out.write("</select>\r\n\t\t\t ");
out.write("<input type=\"submit\" name=\"Submit2\" value=\"查 询\" class=\"anniu\"/>");
out.write("</td>\r\n\t\t\t ");
out.write("</tr>\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td colspan=\"2\">");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\t\r\n\t\t\t");
out.write("</table>\r\n\t\t");
out.write("</form>\r\n\t\t\r\n\t\t");
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
_jspx_th_c_if_0.setPageContext(pageContext);
_jspx_th_c_if_0.setParent(null);
_jspx_th_c_if_0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.BuildingsInfo!=null}", java.lang.Boolean.class, (PageContext)pageContext, null, false)).booleanValue());
int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n\t\t");
out.write("<br/>");
out.write("<hr/>\r\n\t\t\t\r\n\t\t\t");
out.write("<form method=\"post\" action=\"/Imis/servlet/Building_sl?id=update\" name=\"form1\">\r\n\t\t\t");
out.write("<table align=\"center\" width=\"527\" border=\"0\" class=\"ziti\" background=\"/Imis/imis_hous/css/images/bg_main.png\">\r\n\t\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td width=\"42%\" align=\"right\">建筑物代号:");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td width=\"58%\">\r\n\t\t\t\t\t\t");
out.write("<input type=\"text\" name=\"J_BuildingNu\" class=\"text1\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.BuildingsInfo.buildingNu}", java.lang.String.class, (PageContext)pageContext, null, false));
out.write("\" readonly=\"readonly\"/>\r\n\t\t\t\t\t");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\r\n\t\t\t\t");
out.write("<tr>\t\t\t\t\t\r\n\t\t\t\t\t");
out.write("<td align=\"right\">地块名称:");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td>\r\n\t\t\t\t\t");
out.write("<select name=\"J_AreaNu\"> \r\n ");
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++ ){
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -