📄 frm_pycj_remove.asp
字号:
<!--#include virtual="/include/DBCon.inc"-->
<%
pycjId=request.form("chpycj")
if pycjId="" then
response.redirect "/profile/errorpage.asp?title=删除排液及抽汲数据&msg=您没有选择任何数据!"
end if
wellId=request.form("wellId")
sdate=request.form("sdate")
isSub=request.form("isSub")
datest=cdate(sdate & "-1-1")
dateed=cdate(sdate & "-12-31")
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_pycj where pycj_well_id='" &wellId& "' and pycj_id in (" &pycjId& ")"
rs.open SQL,conn,1,1
dim pycj(),pycjCount
pycjCount=0
do while not rs.eof
tdate=cdate(rs("pycj_csrq"))
if tdate>=datest and tdate<=dateed then
pycjCount=pycjCount+1
redim preserve pycj(pycjCount)
pycj(pycjCount-1)=""
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_id")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_csrq")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_csnr")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_cjd")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_cjh")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_qj")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_pxfp")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_xb")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_dym")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_cs")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_rcy")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_rco")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_ljyl")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_ljol")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_ljsl")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_cl")
pycj(pycjCount-1)=pycj(pycjCount-1)& "@" & rs("pycj_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>
您确定要删除<%=sdate%>年度井<%=wellId%>的排液及抽汲数据<font color=cc0000><%=pycjId%></font>吗?
</td>
</tr>
</table>
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width=1160>
<tr height="20">
<td class="title" rowspan=2 align=center width=60>井号</td>
<td class="title" rowspan=2 align=center width=100>措施日期</td>
<td class="title" rowspan=2 align=center width=100>措施方式</td>
<td class="title" colspan=5 align=center>排液方式</td>
<td class="title" colspan=8 align=center>试抽抽汲情况</td>
<td class="title" rowspan=2 align=center width=100>备注</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>
<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>
<td class="title" align=center width=60>CL-</td>
</tr>
<%for i=0 to pycjCount-1%>
<tr height="20" align=center>
<td> <%=wellId%></td>
<td> <%=split(pycj(i),"@")(2)%></td>
<td> <%=split(pycj(i),"@")(3)%></td>
<td> <%=split(pycj(i),"@")(4)%></td>
<td> <%=split(pycj(i),"@")(5)%></td>
<td> <%=split(pycj(i),"@")(6)%></td>
<td> <%=split(pycj(i),"@")(7)%></td>
<td> <%=split(pycj(i),"@")(8)%></td>
<td> <%=split(pycj(i),"@")(9)%></td>
<td> <%=split(pycj(i),"@")(10)%></td>
<td> <%=split(pycj(i),"@")(11)%></td>
<td> <%=split(pycj(i),"@")(12)%></td>
<td> <%=split(pycj(i),"@")(13)%></td>
<td> <%=split(pycj(i),"@")(14)%></td>
<td> <%=split(pycj(i),"@")(15)%></td>
<td> <%=split(pycj(i),"@")(16)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(pycj(i),"@")(17)%></textarea></td>
</tr>
<%next%>
</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=wellId value="<%=wellId%>">
<input type=hidden name=sdate value="<%=sdate%>">
<input type=hidden name=chpycj value="<%=pycjId%>">
<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_pycj.asp?well_id=<%=wellId%>&date=<%=sdate%>");'>
</td>
</tr>
</table>
<%
else
SQL="delete from oil.oil_pycj where pycj_id in (" &pycjId& ")"
rs.open SQL,conn,1,3
%>
<table width=80% border=0 cellspacing="0" cellpadding="0">
<tr>
<td align=left height=40>
排液及抽汲数据<font color=cc0000><%=pycjId%></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_pycj.asp?well_id=<%=wellId%>&date=<%=sdate%>");'>
</td>
</tr>
</table>
<%
end if
%>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -