📄 frm_zsz_device_add.asp
字号:
<!--#include virtual="/include/DBCon.inc"-->
<html>
<head>
<%
dvType=request.form("dvtype")
tarea=request("area")
tzsz=request("zsz")
if dvType="" then
dvType=request("dvtype")
end if
'以下从数据库取出作业区
dim area(),areaCount
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_dict where dict_type='area'"
rs.open SQL,conn,1,1
if rs.eof and rs.bof then
response.redirect "/profile/errorpage.asp?title=查询油水井数据&msg=数据库里没有作业区信息"
else
areaCount=0
do while not rs.eof
areaCount=areaCount+1
redim preserve area(areaCount)
area(UBound(area)-1)=rs("dict_value") & "-" & rs("dict_code")
rs.movenext
loop
end if
'以下从数据库取出注水站
dim zsz(),zszCount
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_zsz order by zsz_id"
rs.open SQL,conn,1,1
if rs.eof and rs.bof then
response.redirect "/profile/errorpage.asp?title=查询油水井数据&msg=数据库里没有注水站信息"
else
zszCount=0
do while not rs.eof
zszCount=zszCount+1
redim preserve zsz(zszCount)
zsz(UBound(zsz)-1)=rs("zsz_id") & "-" & rs("zsz_name") & "-" & rs("zsz_area_id")
rs.movenext
loop
end if
%>
<title>油田采油工艺综合管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/css/oil.css" type="text/css">
<SCRIPT LANGUAGE="javascript" src="/include/calender.js"></SCRIPT>
<SCRIPT LANGUAGE=javascript>
<!--
function areaCh() {
var vbarea=document.form1.area.value;
var vbzsz=new Array(<%=UBound(zsz)%>);
var vbzsz_name=new Array(<%=Ubound(zsz)%>);
<%
for i=0 to Ubound(zsz)-1
%>
vbzsz[<%=i%>]="<%=zsz(i)%>";
vbzsz_name[<%=i%>]="<%=split(zsz(i),"-")(1)%>";
<%
next
%>
var tzsz_id="";
var tzsz_name="";
for (var i=0;i<vbzsz.length;i++) {
tazsz=vbzsz[i].split("-");
tarea=tazsz[2];
if (tarea==vbarea) {
if (tzsz_id=="") {
tzsz_id=tazsz[0];
} else {
tzsz_id=tzsz_id+"*"+tazsz[0];
}
if (tzsz_name=="") {
tzsz_name=vbzsz_name[i];
} else {
tzsz_name=tzsz_name+"*"+vbzsz_name[i];
}
}
}
var curzsz_id=tzsz_id.split("*");
var curzsz_name=tzsz_name.split("*");
if (curzsz_id!="") {
form1.zsz.length=curzsz_id.length+1;
} else {
form1.zsz.length=1;
}
form1.zsz.options[0].value="";
form1.zsz.options[0].text="请选择......";
for (var i=0;i<form1.zsz.length-1;i++) {
form1.zsz.options[i+1].value=curzsz_id[i];
form1.zsz.options[i+1].text=curzsz_name[i];
}
}
function subcheck() {
form1.action="frm_zsz_device_add_confirm.asp";
form1.submit();
}
-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
<span class="subject">
<%
if dvType=0 then
response.write "添加注水站注水设备"
elseif dvType=1 then
response.write "添加注水站水处理设备"
elseif dvType=2 then
response.write "添加注水站储水设备"
elseif dvType=3 then
response.write "添加注水站加药设备"
end if
%>
</span>
<hr size="1" class=hr width="98%" align="center">
<br>
<form action="" method=post name=form1>
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width="90%">
<tr height="20">
<td class="title" align=center colspan=2>添加数据类别</td>
<td align=left width=70%>  
<select name=dvtype Onchange="submit()">
<option value=0 <%if dvType=0 then response.write " selected" end if%>>添加注水设备</option>
<option value=1 <%if dvType=1 then response.write " selected" end if%>>添加水处理设备</option>
<option value=2 <%if dvType=2 then response.write " selected" end if%>>添加储水设备</option>
<option value=3 <%if dvType=3 then response.write " selected" end if%>>添加加药设备</option>
</select>
</td>
</tr>
<tr height="20">
<td class="title" align=center colspan=2>作业区</td>
<td align=left width=70%>  
<select name=area onchange="areaCh()">
<option value="">请选择......</option>
<%for i=0 to areaCount-1%>
<option value=<%=split(area(i),"-")(1)%>><%=split(area(i),"-")(0)%></option>
<%next%>
</select>
</td>
</tr>
<tr height="20">
<td class="title" align=center colspan=2>注水站</td>
<td align=left width=70%>  
<select name=zsz>
</select>
</td>
</tr>
<%if dvType=0 then%>
<tr height="20">
<td class="title" align=center colspan=2>设备名称</td>
<td align=left width=70%>  
<input type="text" name="text1" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center colspan=2>设备编号</td>
<td align=left width=70%>  
<input type="text" name="text2" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center colspan=2>设备型号</td>
<td align=left width=70%>  
<input type="text" name="text3" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center colspan=2>数量</td>
<td align=left width=70%>  
<input type="text" name="text4" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center rowspan=2 width=10%>基本参数</td>
<td class="title" align=center width=20%>额定压力</td>
<td align=left width=70%>  
<input type="text" name="text5" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>额定排量</td>
<td align=left width=70%>  
<input type="text" name="text6" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center colspan=2>投运时间</td>
<td align=left width=70%>  
<input type="text" name="text7" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center colspan=2>注入水质</td>
<td align=left width=70%>  
<input type="text" name="text8" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center colspan=2>实际排量</td>
<td align=left width=70%>  
<input type="text" name="text9" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center colspan=2>目前运行状况及问题</td>
<td align=left width=70%>  
<textarea name=text10 cols=30 rows=3 class=text></textarea>
</td>
</tr>
<tr height="20">
<td class="title" align=center colspan=2>备注</td>
<td align=left width=70%>  
<textarea name=text11 cols=30 rows=3 class=text></textarea>
</td>
</tr>
<%elseif dvType=1 then '--------------------------------------------------------%>
<tr height="20">
<td class="title" align=center rowspan=5 width=10%>过滤器</td>
<td class="title" align=center width=20%>投运时间</td>
<td align=left width=70%>  
<input type="text" name="text1" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>型号</td>
<td align=left width=70%>  
<input type="text" name="text2" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>数量</td>
<td align=left width=70%>  
<input type="text" name="text3" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>日处理量</td>
<td align=left width=70%>  
<input type="text" name="text4" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>运行状况</td>
<td align=left width=70%>  
<textarea name=text5 cols=30 rows=3 class=text></textarea>
</td>
</tr>
<tr height="20">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -