📄 batchfitapparatusinput.jsp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META name="GENERATOR" content="IBM WebSphere Page Designer V3.5 for Windows">
<META http-equiv="Content-Style-Type" content="text/css">
<title>设置三表</title>
<% String vapparatusnumb= (String) request.getParameter("vapparatusnumb");
Vector vsubareanumb= (Vector) session.getValue("vsubareanumb");
int max = vsubareanumb.size();
String[][] build =(String[][]) session.getValue("vbuildingnumb");
String[][] doorcount = (String[][]) session.getValue("vdoorcount");
String[][][][] cell = (String[][][][])session.getValue("vcellnumb");
String[][][][] cellowner = (String[][][][])session.getValue("vcellowner");
%>
<link rel="stylesheet" href="/pmsApp/css/wuye.css" type="text/css">
<script language="JavaScript" src="/pmsApp/common/wuye.js"></script>
<script language="JavaScript" src="/pmsApp/common/admin.js"></script>
<script language="JavaScript">
function trover(trid){
trid.className="trover";
}
function trout(trid){
trid.className="trout";
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function selectb(){
<%
for(int i=0;i<max;i++){
if(((String)vsubareanumb.elementAt(i)).length()==1){
String temp = (String)vsubareanumb.elementAt(i);
temp=" "+temp;
vsubareanumb.set(i,temp);}
%>
if(document.form1.subarea.value =="<%=vsubareanumb.elementAt(i)%>")
{
<%
for(int j=0;j<100;j++){
if(build[i][j]==null){continue;}
%>
document.form1.build.options.length=<%=j+2%>
document.form1.build.options[<%=j+1%>].text="<%=build[i][j]%>"
<%
String b1 = build[i][j];
if(b1.length()==2){
b1 = " "+b1;
build[i][j]=b1;
}
if(b1.length()==1){
b1 = " "+b1;
build[i][j]=b1;
}
%>
document.form1.build.options[<%=j+1%>].value="<%=build[i][j]%>"
<%}%>
}
<% } %>
}
function selectd(){
var max1,m,k;
<% int i1;
for(i1=0;i1<max;i1++){
%>
if(document.form1.subarea.value =="<%=vsubareanumb.elementAt(i1)%>")
{
<%
for(int j=0;j<100;j++){
if(build[i1][j]==null){break;}
%>
if(document.form1.build.value=="<%=build[i1][j]%>")
{ max1 = <%=doorcount[i1][j]%>;
m = 1
for(k=0;k<max1;k++){
document.form1.door.options.length=max1+1
document.form1.door.options[k+1].text= m
document.form1.door.options[k+1].value= m
m++
}
}
<% }%>
}
<% }
%>
}
function selectc(){
var max1,m,k;
<% int i2;
for(i2=0;i2<max;i2++){
%>
if(document.form1.subarea.value =="<%=vsubareanumb.elementAt(i2)%>")
{ <%
for(int j1=0;j1<100;j1++){
if(build[i2][j1]==null){break;}
%>
if(document.form1.build.value=="<%=build[i2][j1]%>")
{
<% for(int k=0;k<10;k++)
{%>
if( document.form1.door.value=="<%=k+1%>")
{ document.form1.cell.options.length=1
<% for(int h=0;h<100;h++){
if(cell[i2][j1][k][h]==null){break;}%>
document.form1.cell.options.length=<%=h+2%>
document.form1.cell.options[<%=h+1%>].text="<%=cell[i2][j1][k][h]%>"
document.form1.cell.options[<%=h+1%>].value="<%=cell[i2][j1][k][h]%>"
<%}%>
}
<%
}%>
}
<% }%>
}
<% } %>
}
var linenumber=0;
function Fit(){
bool=true;
if(document.form1.subarea.value!=' '){
var str = document.form1.subarea.value+document.form1.build.value+"_"+document.form1.door.value+"_"+document.form1.cell.value
var vstr = document.form1.subarea.value+document.form1.build.value+document.form1.door.value+document.form1.cell.value
outstring='<table align="center" width="100%" cellpadding="0" cellspacing="0"><tr><td align="center"><table width="98%" cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#ffffff" border="1" id="tb' + (linenumber + 1) + '"><tr>' +
'<td width="10%" align="center">'+str+'<input type="hidden" name="hide' + (linenumber + 1) + '" value="'+vstr+'" ></td></tr></table></td></tr></table>';
eval('document.all.tb' + linenumber + '.insertAdjacentHTML("AfterEnd", outstring)');
linenumber++;
} else {
alert("您没有选择设置地址");
document.form1.subarea.focus();
}
}
function valid(inputForm){
//Nvoid(inputForm);
bool = true;
if (document.form1.subarea.value==' ') {
alert("您没有选择设置地址");
document.form1.subarea.focus();
bool = false;
}
if (bool) {
handleForm(inputForm)
}
}
function handleForm(inputForm) {
var str="";
var del2="☆";
var del ="※";
for (i=0; i<inputForm.elements.length; i++)
{
if ((inputForm.elements[i].name.toUpperCase() != "RESET") &&
(inputForm.elements[i].name.toUpperCase() != "SUBMIT"))
{
if ((inputForm.elements[i].type == "radio") ||
(inputForm.elements[i].type == "checkbox"))
{
if (inputForm.elements[i].checked)
{
str = str+inputForm.elements[i].name+del2+inputForm.elements[i].value+del;
}
}
else if (inputForm.elements[i].type == "select-one")
{
str = str+inputForm.elements[i].name
+del2+inputForm.elements[i].options[inputForm.elements[i].selectedIndex].value+del;
}
else
{
str = str+inputForm.elements[i].name+del2+inputForm.elements[i].value+del;
}
}
}
str=str.substr(0,str.length-del.length);
inputStr=str;
document.hiddenForm.inputString.value=str;
document.hiddenForm.submit();
}
</script>
</head>
<body bgColor="#d4d0c8" leftMargin="0" topMargin="0" vLink="#003399" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/button_modify_over.gif','images/button_del_over.gif')" >
<form id="form1" name="form1" >
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td height="28" background="/pmsApp/images/toolbar2.gif" valign="top"><img src="/pmsApp/images/blank.gif" width="10" height="1"><img src="/pmsApp/images/button_new_gray.gif" width="55" height="20"><img src="/pmsApp/images/button_modify_gray.gif" width="55" height="20"><img src="/pmsApp/images/button_del_gray.gif" width="55" height="20"><img src="/pmsApp/images/button_split.gif" width="8" height="20"><a href="/pmsApp/servlet/common.PMS?txId=2026&inputString=apparatusnumb%A1%EE<%=vapparatusnumb%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','/pmsApp/images/button_query_over.gif',1)"><img name="Image10" border="0" src="/pmsApp/images/button_query.gif" width="55" height="20" ></a><img src="/pmsApp/images/button_split.gif" width="8" height="20"><a href="#"></a></td>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="/pmsApp/images/tab_left.gif" width="3" height="25"></td>
<td width="100%" background="/pmsApp/images/tab_mid.gif" height="25">
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="100" background="/pmsApp/images/tab_down_left.gif" height="25"><a href="/pmsApp/servlet/common.PMS?txId=2017&inputString=apparatusnumb%A1%EE<%=vapparatusnumb%>">表资料</a></td>
<td width="100" background="/pmsApp/images/tab_up.gif">表设置 </td>
</tr>
</table> </td>
</tr>
</table>
<table width="98%" border="1" align="center" bgcolor="menu" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="0">
<tr>
<td align="center" width="28%" height="25">分 区</td>
<td width="72%" height="25"><select name="subarea" id="subarea" onchange="javascript:selectb();">
<option value=" " selected>------</option>
<%for(int i=0;i<max;i++){
if(((String)vsubareanumb.elementAt(i)).length()==1){%>
<option value="<%=vsubareanumb.elementAt(i)%>" ><%=vsubareanumb.elementAt(i)%></option>
<%}else{%>
<option value="<%=vsubareanumb.elementAt(i)%>" ><%=vsubareanumb.elementAt(i)%></option>
<%}%>
<%}%>
</select></td>
</tr>
<tr>
<td align="center" width="28%" height="25">楼 宇</td>
<td width="72%" height="25"><select name="build" id="build" onchange="javascript:selectd();">
<option value=" " selected>------</option>
</select>
</td>
</tr>
<tr>
<td align="center" width="28%" height="25">梯 口</td>
<td width="72%" height="25"> <select name="door" id="door" onchange="javascript:selectc();">
<option value=" " selected>------</option>
</select>
</td>
</tr>
<tr>
<td align="center" width="28%" height="25">单 元</td>
<td width="72%" height="25"><select name="cell" id="cell">
<option value=" " selected>------</option>
</select>
</td>
</tr>
</table>
</form>
<TABLE border="1" align="center" bgcolor="menu" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="0">
<tr>
<TD align="center" width="171">
<p><a href="javascript:Fit()">设置</a></p>
</TD>
</tr>
</TABLE>
<form name="form2">
<INPUT TYPE="hidden" NAME="vapparatusnumb" ID="vapparatusnumb" VALUE="<%=vapparatusnumb%>">
<table id="tb0" width="100%" align="center" >
<tr><td></td><td></td></tr></table>
</form>
<TABLE border="1" align="center" bgcolor="menu" bordercolorlight="#808080" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="0">
<tr>
<TD align="center" width="171">
<p><a href="javascript:valid(form2)">确定</a></p>
</TD>
</tr>
</TABLE>
<FORM name="hiddenForm" action="/pmsApp/servlet/common.PMS">
<INPUT TYPE="hidden" NAME="txId" ID="txId" VALUE="2006">
<INPUT TYPE="hidden" NAME="inputString" ID="inputString" >
</FORM>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -