📄 frm_xgrb_remove.asp
字号:
<!--#include virtual="/include/DBCon.inc"-->
<%
xgrbId=request.form("chxgrb")
if xgrbId="" then
response.redirect "/profile/errorpage.asp?title=删除措施井效果跟踪日报&msg=您没有选择任何数据!"
end if
sdate=request.form("sdate")
syear=split(sdate,"-")(0)
smonth=split(sdate,"-")(1)
sday=split(sdate,"-")(2)
welltype=request.form("welltype")
isSub=request.form("isSub")
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_xgrb where xgrb_id in (" &xgrbId& ")"
rs.open SQL,conn,1,1
dim xgrb(),xgrbCount
xgrbCount=0
do while not rs.eof
xgrbCount=xgrbCount+1
redim preserve xgrb(xgrbCount)
xgrb(xgrbCount-1)=""
if welltype=0 then
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_id")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_well_id")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_csnr")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_wjrq")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_bf_cy")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_bf_co")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_bf_hs")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_af_cy")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_af_co")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_af_hs")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_rzy")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_memo")
else
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_id")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_well_id")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_csnr")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_wjrq")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_bf_gy")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_bf_rzl")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_af_gy")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_af_rzl")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_rzz")
xgrb(xgrbCount-1)=xgrb(xgrbCount-1)& "@" & rs("xgrb_memo")
end if
rs.movenext
loop
rs.close
%>
<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>
您确定要删除措施井效果跟踪日报<font color=cc0000><%=xgrbId%></font>吗?
</td>
</tr>
</table>
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width=1000>
<%
if welltype=1 then
%>
<tr height="20">
<td class="title" rowspan=2 align=center width=60>井号</td>
<td class="title" rowspan=2 align=center width=120>措施内容</td>
<td class="title" rowspan=2 align=center width=60>完井日期</td>
<td class="title" colspan=2 align=center> 措施前</td>
<td class="title" colspan=2 align=center>目前</td>
<td class="title" rowspan=2 align=center width=60>日增注</td>
<td class="title" rowspan=2 align=center width=120>备注</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>
</tr>
<%
for i=0 to xgrbCount-1
%>
<tr height="20" align=center>
<td> <%=split(xgrb(i),"@")(2)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(xgrb(i),"@")(3)%></textarea></td>
<td> <%=split(xgrb(i),"@")(4)%></td>
<td> <%=split(xgrb(i),"@")(5)%></td>
<td> <%=split(xgrb(i),"@")(6)%></td>
<td> <%=split(xgrb(i),"@")(7)%></td>
<td> <%=split(xgrb(i),"@")(8)%></td>
<td> <%=split(xgrb(i),"@")(9)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(xgrb(i),"@")(10)%></textarea></td>
</tr>
<%next%>
<%
else
%>
<tr height="20">
<td class="title" rowspan=2 align=center width=60>井号</td>
<td class="title" rowspan=2 align=center width=120>措施内容</td>
<td class="title" rowspan=2 align=center width=60>完井日期</td>
<td class="title" colspan=3 align=center> 措施前</td>
<td class="title" colspan=3 align=center>目前</td>
<td class="title" rowspan=2 align=center width=60>日增油</td>
<td class="title" rowspan=2 align=center width=120>备注</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=60>日产油</td>
<td class="title" align=center width=60>含水</td>
</tr>
<%
for i=0 to xgrbCount-1
%>
<tr height="20" align=center>
<td> <%=split(xgrb(i),"@")(2)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(xgrb(i),"@")(3)%></textarea></td>
<td> <%=split(xgrb(i),"@")(4)%></td>
<td> <%=split(xgrb(i),"@")(5)%></td>
<td> <%=split(xgrb(i),"@")(6)%></td>
<td> <%=split(xgrb(i),"@")(7)%></td>
<td> <%=split(xgrb(i),"@")(8)%></td>
<td> <%=split(xgrb(i),"@")(9)%></td>
<td> <%=split(xgrb(i),"@")(10)%></td>
<td> <%=split(xgrb(i),"@")(11)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(xgrb(i),"@")(12)%></textarea></td>
</tr>
<%next%>
<%
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=sdate value="<%=sdate%>">
<input type=hidden name=chxgrb value="<%=xgrbId%>">
<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_xgrb.asp?year=<%=syear%>&month=<%=smonth%>&day=<%=sday%>");'>
</td>
</tr>
</table>
<%
else
SQL="delete from oil.oil_xgrb where xgrb_id in (" &xgrbId& ")"
rs.open SQL,conn,1,3
%>
<table width=80% border=0 cellspacing="0" cellpadding="0">
<tr>
<td align=left height=40>
措施井效果跟踪日报<font color=cc0000><%=xgrbId%></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_xgrb.asp?year=<%=syear%>&month=<%=smonth%>&day=<%=sday%>");'>
</td>
</tr>
</table>
<%
end if
%>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -