?? frm_layercs_by_remove.asp
字號:
<!--#include virtual="/include/DBCon.inc"-->
<%
layercsId=request.form("chlayercs")
if layercsId="" 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_by l,oil.oil_dict d where by_well_id='" &wellId& "' and d.dict_type='layer' and d.dict_code=l.by_layer_type and l.by_id in (" &layercsId& ")"
rs.open SQL,conn,1,1
dim layercs(),layercsCount
layercsCount=0
do while not rs.eof
tdate=cdate(rs("by_layer_csrq"))
if tdate>=datest and tdate<=dateed then
layercsCount=layercsCount+1
redim preserve layercs(layercsCount)
layercs(layercsCount-1)=""
layercs(layercsCount-1)=layercs(layercsCount-1)& "@" & rs("by_id")
layercs(layercsCount-1)=layercs(layercsCount-1)& "@" & rs("dict_value")
layercs(layercsCount-1)=layercs(layercsCount-1)& "@" & rs("by_layer_id")
layercs(layercsCount-1)=layercs(layercsCount-1)& "@" & rs("by_layer_csrq")
layercs(layercsCount-1)=layercs(layercsCount-1)& "@" & rs("by_layer_csnr")
layercs(layercsCount-1)=layercs(layercsCount-1)& "@" & rs("by_zyl")
layercs(layercsCount-1)=layercs(layercsCount-1)& "@" & rs("by_yd_high")
layercs(layercsCount-1)=layercs(layercsCount-1)& "@" & rs("by_yd_pf")
layercs(layercsCount-1)=layercs(layercsCount-1)& "@" & rs("by_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><%=layercsId%></font>嗎?
</td>
</tr>
</table>
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width=900>
<tr height="20">
<td class="title" rowspan=2 align=center width=60>井號</td>
<td class="title" rowspan=2 align=center width=60>層類別</td>
<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=2 align=center>爆燃壓裂施工參數</td>
<td class="title" rowspan=2 align=center width=100>壓檔液配方</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=100>壓檔液柱高度</td>
</tr>
<%for i=0 to layercsCount-1%>
<tr height="20" align=center>
<td> <%=wellId%></td>
<td> <%=split(layercs(i),"@")(2)%></td>
<td> <%=split(layercs(i),"@")(3)%></td>
<td> <%=split(layercs(i),"@")(4)%></td>
<td> <%=split(layercs(i),"@")(5)%></td>
<td> <%=split(layercs(i),"@")(6)%></td>
<td> <%=split(layercs(i),"@")(7)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(layercs(i),"@")(8)%></textarea></td>
<td> <textarea rows=2 cols=25 class=text><%=split(layercs(i),"@")(9)%></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=chlayercs value="<%=layercsId%>">
<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_layercs_by.asp?well_id=<%=wellId%>&date=<%=sdate%>");'>
</td>
</tr>
</table>
<%
else
SQL="delete from oil.oil_by where by_id in (" &layercsId& ")"
rs.open SQL,conn,1,3
%>
<table width=80% border=0 cellspacing="0" cellpadding="0">
<tr>
<td align=left height=40>
爆壓措施數據<font color=cc0000><%=layercsId%></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_layercs_by.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 + =
減小字號
Ctrl + -