📄 frm_gsz_device_remove.asp
字号:
<!--#include virtual="/include/DBCon.inc"-->
<%
deviceId=request.form("chdevice")
tarea=request.form("area")
tzsz=request.form("zsz")
dvType=request.form("dvType")
if deviceId="" then
response.redirect "/profile/errorpage.asp?title=删除供水站设备&msg=您没有选择任何数据!"
end if
isSub=request.form("isSub")
Set Rs = Server.CreateObject("ADODB.RecordSet")
if isSub="" then
if dvType=0 then
SQL="select * from oil.oil_zsz,oil.oil_gsdv where gsdv_id in (" &deviceId& ") and gsdv_zsz_id=zsz_id order by gsdv_id"
rs.open SQL,conn,1,1
deviceCount=0
do while not rs.eof
deviceCount=deviceCount+1
redim preserve device(deviceCount)
device(deviceCount-1)=""
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gsdv_id")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("zsz_name")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gsdv_name")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gsdv_no")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gsdv_model")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gsdv_count")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gsdv_bs_edyl")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gsdv_bs_edpl")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gsdv_tysj")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gsdv_gssz")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gsdv_sjpl")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gsdv_wt")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gsdv_memo")
rs.movenext
loop
rs.close
elseif dvType=1 then
SQL="select * from oil.oil_zsz,oil.oil_gscsdv where gscsdv_id in (" &deviceId& ") and gscsdv_zsz_id=zsz_id order by gscsdv_id"
rs.open SQL,conn,1,1
deviceCount=0
do while not rs.eof
deviceCount=deviceCount+1
redim preserve device(deviceCount)
device(deviceCount-1)=""
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gscsdv_id")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("zsz_name")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gscsdv_csg_tysj")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gscsdv_csg_gg")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gscsdv_csg_count")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gscsdv_csg_dgff")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gscsdv_csg_dgzt")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gscsdv_gymb_fs")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gscsdv_gymb_tysj")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gscsdv_gymb_wt")
device(deviceCount-1)=device(deviceCount-1)& "@" & rs("gscsdv_memo")
rs.movenext
loop
rs.close
end if
end if
%>
<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>
<!--
-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
<form action="" method=post name=form1>
<span class="subject">删除数据</span>
<hr size="1" class=hr width="98%" align="center">
<%
if isSub="" then
%>
<table width=80% border=0 cellspacing="0" cellpadding="0">
<tr>
<td align=left height=40>
<%
if dvType=0 then
response.write "您确定要删除供水站供水设备"
elseif dvType=1 then
response.write "您确定要删除供水站储水设备"
end if
%>
<font color=cc0000><%=deviceId%></font>吗?
</td>
</tr>
</table>
<%
if dvType=0 then
%>
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width=1100>
<tr height="20">
<td class="title" align=center width=90 rowspan=2>注水站</td>
<td class="title" align=center width=60 rowspan=2>设备名称</td>
<td class="title" align=center width=60 rowspan=2>设备编号</td>
<td class="title" align=center width=60 rowspan=2>设备型号</td>
<td class="title" align=center width=60 rowspan=2>数量</td>
<td class="title" align=center colspan=2>基本参数</td>
<td class="title" align=center width=60 rowspan=2>投运时间</td>
<td class="title" align=center width=60 rowspan=2>供水水质</td>
<td class="title" align=center width=60 rowspan=2>实际排量(m3)</td>
<td class="title" align=center width=180 rowspan=2>目前运行状况及问题</td>
<td class="title" align=center width=180 rowspan=2>备注</td>
</tr>
<tr height="20">
<td class="title" align=center width=90>额定压力(MPa)</td>
<td class="title" align=center width=90>额定排量(m3)</td>
</tr>
<%for i=0 to deviceCount-1%>
<tr height="20" align=center>
<td> <%=split(device(i),"@")(2)%></td>
<td> <%=split(device(i),"@")(3)%></td>
<td> <%=split(device(i),"@")(4)%></td>
<td> <%=split(device(i),"@")(5)%></td>
<td> <%=split(device(i),"@")(6)%></td>
<td> <%=split(device(i),"@")(7)%></td>
<td> <%=split(device(i),"@")(8)%></td>
<td> <%=split(device(i),"@")(9)%></td>
<td> <%=split(device(i),"@")(10)%></td>
<td> <%=split(device(i),"@")(11)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(device(i),"@")(12)%></textarea></td>
<td> <textarea rows=2 cols=25 class=text><%=split(device(i),"@")(13)%></textarea></td>
</tr>
<%next%>
</table>
<%elseif dvType=1 then%>
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width=1000>
<tr height="20">
<td class="title" align=center width=90 rowspan=2>注水站</td>
<td class="title" align=center colspan=5>储水罐</td>
<td class="title" align=center colspan=3>隔氧密闭</td>
<td class="title" align=center width=180 rowspan=2>备注</td>
</tr>
<tr height="20">
<td class="title" align=center width=60>投运时间</td>
<td class="title" align=center width=60>规格</td>
<td class="title" align=center width=60>数量</td>
<td class="title" align=center width=60>大罐防腐</td>
<td class="title" align=center width=180>大罐运行状况</td>
<td class="title" align=center width=60>密闭方式</td>
<td class="title" align=center width=60>投运时间</td>
<td class="title" align=center width=180>目前存在问题及整改方案</td>
</tr>
<%for i=0 to deviceCount-1%>
<tr height="20" align=center>
<td> <%=split(device(i),"@")(2)%></td>
<td> <%=split(device(i),"@")(3)%></td>
<td> <%=split(device(i),"@")(4)%></td>
<td> <%=split(device(i),"@")(5)%></td>
<td> <%=split(device(i),"@")(6)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(device(i),"@")(7)%></textarea></td>
<td> <%=split(device(i),"@")(8)%></td>
<td> <%=split(device(i),"@")(9)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(device(i),"@")(10)%></textarea></td>
<td> <textarea rows=2 cols=25 class=text><%=split(device(i),"@")(11)%></textarea></td>
</tr>
<%next%>
</table>
<%end if%>
<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=submit name=submit1 value=" 确定 " class=button>
<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>
<%
else
if dvType=0 then
SQL="delete from oil.oil_gsdv where gsdv_id in (" &deviceId& ")"
rs.open SQL,conn,1,3
elseif dvType=1 then
SQL="delete from oil.oil_gscsdv where gscsdv_id in (" &deviceId& ")"
rs.open SQL,conn,1,3
end if
%>
<table width=80% border=0 cellspacing="0" cellpadding="0">
<tr>
<td align=left height=40>
供水站设备<font color=cc0000><%=deviceId%></font>已经成功删除。
</td>
</tr>
</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="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>
<%
end if
%>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -