⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frm_ydwxfy_remove.asp

📁 一套石油公司内部的运营管理系统
💻 ASP
字号:
<!--#include virtual="/include/DBCon.inc"-->
<%
ydwxfyId=request.form("chydwxfy")
if ydwxfyId="" 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 owc_date,owc_id,well_type,wxzl_value,dict_value,owc_repair_date,owc_repair_reason,owc_fee,owc_memo from oil.oil_owc c,oil.oil_well w,oil.oil_dict d,oil.oil_wxzl z where owc_type=wxzl_code and owc_well_id=well_id and well_area=dict_code and dict_type='area' and owc_id in (" &ydwxfyId& ")"
rs.open SQL,conn,1,1
dim ydwxfy(),ydwxfyCount
ydwxfyCount=0
do while not rs.eof
	ydwxfyCount=ydwxfyCount+1
	redim preserve ydwxfy(ydwxfyCount)
	ydwxfy(ydwxfyCount-1)=""
	ydwxfy(ydwxfyCount-1)=ydwxfy(ydwxfyCount-1)& "@" & rs("owc_id") 
	ydwxfy(ydwxfyCount-1)=ydwxfy(ydwxfyCount-1)& "@" & rs("well_type") 
	ydwxfy(ydwxfyCount-1)=ydwxfy(ydwxfyCount-1)& "@" & rs("dict_value") 
	ydwxfy(ydwxfyCount-1)=ydwxfy(ydwxfyCount-1)& "@" & rs("wxzl_value") 
	ydwxfy(ydwxfyCount-1)=ydwxfy(ydwxfyCount-1)& "@" & rs("owc_repair_date") 
	ydwxfy(ydwxfyCount-1)=ydwxfy(ydwxfyCount-1)& "@" & rs("owc_repair_reason")
	ydwxfy(ydwxfyCount-1)=ydwxfy(ydwxfyCount-1)& "@" & rs("owc_fee")
	ydwxfy(ydwxfyCount-1)=ydwxfy(ydwxfyCount-1)& "@" & rs("owc_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><%=ydwxfyId%></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" 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=120>费用结算</td>
	   <td class="title" align=center width=120>备注</td>
	  </tr> 
	  <%for i=0 to ydwxfyCount-1%>
	  <tr height="20" align=center>
	   <td>&nbsp<%=wellId%></td>
	   <td>&nbsp<%if split(ydwxfy(i),"@")(2)=0 then response.write "油井" else response.write "水井" end if%></td>
	   <td>&nbsp<%=split(ydwxfy(i),"@")(3)%></td>
	   <td>&nbsp<%=split(ydwxfy(i),"@")(4)%></td>
	   <td>&nbsp<%=split(ydwxfy(i),"@")(5)%></td>
	   <td>&nbsp<textarea rows=2 cols=25 class=text><%=split(ydwxfy(i),"@")(6)%></textarea></td>
	   <td>&nbsp<%=split(ydwxfy(i),"@")(7)%></td>
	   <td>&nbsp<textarea rows=2 cols=25 class=text><%=split(ydwxfy(i),"@")(8)%></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=chydwxfy value="<%=ydwxfyId%>">
			<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_ydwxfy.asp?year=<%=syear%>&month=<%=smonth%>&well_id=<%=wellId%>");'>
		  </td>
		</tr>
	  </table>
	  <%
	  else
		  SQL="delete from oil.oil_owc where owc_id in (" &ydwxfyId& ")"
		  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><%=ydwxfyId%></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_ydwxfy.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 + -