?? frm_xgrb_remove.asp
字號:
<!--#include virtual="/include/DBCon.inc"-->
<%
xgrbId=request.form("chxgrb")
if xgrbId="" then
response.redirect "/profile/errorpage.asp?title=刪除措施井效果跟蹤日報(bào)&msg=您沒有選擇任何數(shù)據(jù)!"
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>油田采油工藝綜合管理系統(tǒng)</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">刪除數(shù)據(jù)</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>
您確定要刪除措施井效果跟蹤日報(bào)<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>措施內(nèi)容</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>措施內(nèi)容</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>日產(chǎn)液</td>
<td class="title" align=center width=60>日產(chǎn)油</td>
<td class="title" align=center width=60>含水</td>
<td class="title" align=center width=60>日產(chǎn)液 </td>
<td class="title" align=center width=60>日產(chǎn)油</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>
措施井效果跟蹤日報(bào)<font color=cc0000><%=xgrbId%></font>已經(jīng)成功刪除。
</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"-->
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -