?? frm_ydcsfy_remove.asp
字號:
<!--#include virtual="/include/DBCon.inc"-->
<%
ydcsfyId=request.form("chydcsfy")
if ydcsfyId="" then
response.redirect "/profile/errorpage.asp?title=刪除措施費用結算數據&msg=您沒有選擇任何數據!"
end if
syear=request.form("year")
smonth=request.form("month")
wellId=request.form("wellId")
isSub=request.form("isSub")
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select csc_finish_date, csc_date,csc_id,well_type,cszl_value,dict_value,csc_csnr,csc_fee_zcsg,csc_fee_jt,csc_fee_total,csc_memo from oil.oil_csc c,oil.oil_well w,oil.oil_dict d,oil.oil_cszl z where csc_type=cszl_code and csc_well_id=well_id and well_area=dict_code and dict_type='area' and csc_id in (" &ydcsfyId& ")"
rs.open SQL,conn,1,1
dim ydcsfy(),ydcsfyCount
ydcsfyCount=0
do while not rs.eof
ydcsfyCount=ydcsfyCount+1
redim preserve ydcsfy(ydcsfyCount)
ydcsfy(ydcsfyCount-1)=""
ydcsfy(ydcsfyCount-1)=ydcsfy(ydcsfyCount-1)& "@" & rs("csc_id")
ydcsfy(ydcsfyCount-1)=ydcsfy(ydcsfyCount-1)& "@" & rs("well_type")
ydcsfy(ydcsfyCount-1)=ydcsfy(ydcsfyCount-1)& "@" & rs("dict_value")
ydcsfy(ydcsfyCount-1)=ydcsfy(ydcsfyCount-1)& "@" & rs("cszl_value")
ydcsfy(ydcsfyCount-1)=ydcsfy(ydcsfyCount-1)& "@" & rs("csc_finish_date")
ydcsfy(ydcsfyCount-1)=ydcsfy(ydcsfyCount-1)& "@" & rs("csc_csnr")
ydcsfy(ydcsfyCount-1)=ydcsfy(ydcsfyCount-1)& "@" & rs("csc_fee_zcsg")
ydcsfy(ydcsfyCount-1)=ydcsfy(ydcsfyCount-1)& "@" & rs("csc_fee_jt")
ydcsfy(ydcsfyCount-1)=ydcsfy(ydcsfyCount-1)& "@" & rs("csc_fee_total")
ydcsfy(ydcsfyCount-1)=ydcsfy(ydcsfyCount-1)& "@" & rs("csc_memo")
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>
您確定要刪除<%=syear%>年<%=smonth%>月井<%=wellId%>的措施費用結算數據<font color=cc0000><%=ydcsfyId%></font>嗎?
</td>
</tr>
</table>
<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=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 width=80 rowspan=2>措施完井日期</td>
<td class="title" align=center width=120 rowspan=2>措施內容</td>
<td class="title" align=center width=160 colspan=2>費用結算</td>
<td class="title" align=center width=60 rowspan=2>合計</td>
<td class="title" align=center width=120 rowspan=2>備注</td>
</tr>
<tr height="20">
<td class="title" align=center width=80>正常施工費用</td>
<td class="title" align=center width=80>井筒處理費用</td>
</tr>
<%for i=0 to ydcsfyCount-1%>
<tr height="20" align=center>
<td> <%=wellId%></td>
<td> <%if split(ydcsfy(i),"@")(2)=0 then response.write "油井" else response.write "水井" end if%></td>
<td> <%=split(ydcsfy(i),"@")(3)%></td>
<td> <%=split(ydcsfy(i),"@")(4)%></td>
<td> <%=split(ydcsfy(i),"@")(5)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(ydcsfy(i),"@")(6)%></textarea></td>
<td> <%=split(ydcsfy(i),"@")(7)%></td>
<td> <%=split(ydcsfy(i),"@")(8)%></td>
<td> <%=split(ydcsfy(i),"@")(9)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(ydcsfy(i),"@")(10)%></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=year value=<%=syear%>>
<input type=hidden name=month value=<%=smonth%>>
<input type=hidden name=chydcsfy value="<%=ydcsfyId%>">
<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_ydcsfy.asp?year=<%=syear%>&month=<%=smonth%>&well_id=<%=wellId%>");'>
</td>
</tr>
</table>
<%
else
SQL="delete from oil.oil_csc where csc_id in (" &ydcsfyId& ")"
rs.open SQL,conn,1,3
%>
<table width=80% border=0 cellspacing="0" cellpadding="0">
<tr>
<td align=left height=40>
<%=syear%>年<%=smonth%>月井<%=wellId%>的措施費用結算數據<font color=cc0000><%=ydcsfyId%></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_ydcsfy.asp?year=<%=syear%>&month=<%=smonth%>&well_id=<%=wellId%>");'>
</td>
</tr>
</table>
<%
end if
%>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -