📄 frm_gsz_device_modify.asp
字号:
<!--#include virtual="/include/DBCon.inc"-->
<html>
<head>
<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 subcheck() {
form1.submit();
}
-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
<%
deviceId=request.form("chdevice")
dvType=request.form("dvtype")
tarea=request.form("area")
tzsz=request.form("zsz")
if deviceId="" then
response.redirect "/profile/errorpage.asp?title=修改供水站设备&msg=您没有选择任何数据!"
else
deviceId=split(deviceId,",")(0)
end if
dim device(1)
if dvType=0 then
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_zsz,oil.oil_gsdv where gsdv_id='" &deviceId& "' and gsdv_zsz_id=zsz_id order by gsdv_id"
rs.open SQL,conn,1,1
device(0)=""
device(0)=device(0)& "@" & rs("gsdv_id")
device(0)=device(0)& "@" & rs("zsz_name")
device(0)=device(0)& "@" & rs("gsdv_name")
device(0)=device(0)& "@" & rs("gsdv_no")
device(0)=device(0)& "@" & rs("gsdv_model")
device(0)=device(0)& "@" & rs("gsdv_count")
device(0)=device(0)& "@" & rs("gsdv_bs_edyl")
device(0)=device(0)& "@" & rs("gsdv_bs_edpl")
device(0)=device(0)& "@" & rs("gsdv_tysj")
device(0)=device(0)& "@" & rs("gsdv_gssz")
device(0)=device(0)& "@" & rs("gsdv_sjpl")
device(0)=device(0)& "@" & rs("gsdv_wt")
device(0)=device(0)& "@" & rs("gsdv_memo")
rs.close
elseif dvType=1 then
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_zsz,oil.oil_gscsdv where gscsdv_id='" &deviceId& "' and gscsdv_zsz_id=zsz_id order by gscsdv_id"
rs.open SQL,conn,1,1
device(0)=""
device(0)=device(0)& "@" & rs("gscsdv_id")
device(0)=device(0)& "@" & rs("zsz_name")
device(0)=device(0)& "@" & rs("gscsdv_csg_tysj")
device(0)=device(0)& "@" & rs("gscsdv_csg_gg")
device(0)=device(0)& "@" & rs("gscsdv_csg_count")
device(0)=device(0)& "@" & rs("gscsdv_csg_dgff")
device(0)=device(0)& "@" & rs("gscsdv_csg_dgzt")
device(0)=device(0)& "@" & rs("gscsdv_gymb_fs")
device(0)=device(0)& "@" & rs("gscsdv_gymb_tysj")
device(0)=device(0)& "@" & rs("gscsdv_gymb_wt")
device(0)=device(0)& "@" & rs("gscsdv_memo")
rs.close
end if
%>
<span class="subject">
<%
if dvType=0 then
response.write "修改供水站供水设备"
elseif dvType=1 then
response.write "修改供水站储水设备"
end if
%>
<font color=cc0000><%=deviceId%></font>
</span>
<hr size="1" class=hr width="98%" align="center">
<br>
<form action="frm_gsz_device_modify_confirm.asp" 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 colspan=2>  <%=split(tzsz,"-")(1)%></td>
</tr>
<%if dvType=0 then%>
<tr height="20">
<td class="title" align=center colspan=2>设备名称</td>
<td align=left width=30%>  
<%=split(device(0),"@")(3)%>
</td>
<td align=left width=40%>  
<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=30%>  
<%=split(device(0),"@")(4)%>
</td>
<td align=left width=40%>  
<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=30%>  
<%=split(device(0),"@")(5)%>
</td>
<td align=left width=40%>  
<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=30%>  
<%=split(device(0),"@")(6)%>
</td>
<td align=left width=40%>  
<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=30%>  
<%=split(device(0),"@")(7)%>
</td>
<td align=left width=40%>  
<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=30%>  
<%=split(device(0),"@")(8)%>
</td>
<td align=left width=40%>  
<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=30%>  
<%=split(device(0),"@")(9)%>
</td>
<td align=left width=40%>  
<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=30%>  
<%=split(device(0),"@")(10)%>
</td>
<td align=left width=40%>  
<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=30%>  
<%=split(device(0),"@")(11)%>
</td>
<td align=left width=40%>  
<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=30%>  
<textarea cols=20 rows=3 class=text><%=split(device(0),"@")(12)%></textarea>
</td>
<td align=left width=40%>  
<textarea name=text10 cols=28 rows=3 class=text></textarea>
</td>
</tr>
<tr height="20">
<td class="title" align=center colspan=2>备注</td>
<td align=left width=30%>  
<textarea cols=20 rows=3 class=text><%=split(device(0),"@")(13)%></textarea>
</td>
<td align=left width=40%>  
<textarea name=text11 cols=28 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=30%>  
<%=split(device(0),"@")(3)%>
</td>
<td align=left width=40%>  
<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=30%>  
<%=split(device(0),"@")(4)%>
</td>
<td align=left width=40%>  
<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=30%>  
<%=split(device(0),"@")(5)%>
</td>
<td align=left width=40%>  
<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=30%>  
<%=split(device(0),"@")(6)%>
</td>
<td align=left width=40%>  
<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=30%>  
<textarea cols=20 rows=3 class=text><%=split(device(0),"@")(7)%></textarea>
</td>
<td align=left width=40%>  
<textarea name=text5 cols=28 rows=3 class=text></textarea>
</td>
</tr>
<tr height="20">
<td class="title" align=center rowspan=3 width=10%>隔氧密闭</td>
<td class="title" align=center width=20%>密闭方式</td>
<td align=left width=30%>  
<%=split(device(0),"@")(8)%>
</td>
<td align=left width=40%>  
<input type="text" name="text6" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>投运时间</td>
<td align=left width=30%>  
<%=split(device(0),"@")(9)%>
</td>
<td align=left width=40%>  
<input type="text" name="text7" size=30 class=text>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>目前存在的问题及整改方案</td>
<td align=left width=30%>  
<%=split(device(0),"@")(10)%>
</td>
<td align=left width=40%>  
<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=30%>  
<textarea cols=20 rows=3 class=text><%=split(device(0),"@")(11)%></textarea>
</td>
<td align=left width=40%>  
<textarea name=text9 cols=28 rows=3 class=text></textarea>
</td>
</tr>
<%end if%>
</table>
<br>
<hr size="1" class=hr width="98%" align="center">
<br>
<table width="98%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr align="center">
<td>
<input type=hidden name=chdevice value=<%=deviceId%>>
<input type=hidden name=dvtype value=<%=dvType%>>
<input type=hidden name=area value=<%=tarea%>>
<input type=hidden name=zsz value=<%=tzsz%>>
<input type=hidden name=isSub value=true>
<input type="button" name="Submit32" value=" 更新 " class=button onclick=subcheck()>
<input type="button" name="Submit32" value=" 返回 " class=button LANGUAGE=javascript onclick='javascript:location.replace("frm_gsz_device.asp?area=<%=tarea%>&zsz=<%=tzsz%>&dvtype=<%=dvType%>");'>
</td>
</tr>
</table>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -