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

📄 frm_ydzyfy.asp

📁 一套石油公司内部的运营管理系统
💻 ASP
字号:
<!--#include virtual="/include/DBCon.inc"-->
<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>
<!--
function OpenBut(url)
{
	window.open(url, "OpenClose");
}

function	subcheck(act) {
	if (act==0)
		form1.action="frm_ydzyfy_remove.asp";
	else if (act==1)
		form1.action="frm_ydzyfy_modify.asp";
	form1.submit();
}
-->
</SCRIPT>

</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
	<%
	wellIdText=request("well_id")
	wellIdCombo=request("well")
	dim wellId
	if wellIdText="" then
		wellId=wellIdCombo
	else
		wellId=wellIdText
	end if
	Set Rs = Server.CreateObject("ADODB.RecordSet")
	SQL="select well_type from oil.oil_well where well_id='" &wellId& "'"
	rs.open SQL,conn
	welltype=rs("well_type")
	rs.close
	if welltype=1 then
		response.redirect "/profile/errorpage.asp?title=查询数据&msg=只有油井才有转注作业,请选择油井!" 
	end if
	syear=request("year")
	smonth=request("month")
	stdate=cdate(syear & "-" & smonth & "-1")
	if smonth=12 then
		tmonth=1
		tyear=syear+1
	else
		tmonth=smonth+1
		tyear=syear
	end if
	eddate=cdate(tyear & "-" & tmonth & "-1")-1
	SQL="select zzc_zzdate,zzc_date,zzc_id,well_type,dict_value,zzc_fee,zzc_memo from oil.oil_zzc c,oil.oil_well w,oil.oil_dict d where zzc_well_id='" &wellId& "' and zzc_well_id=well_id and well_area=dict_code and dict_type='area'"
	rs.open SQL,conn,1,1
	dim ydzyfy(),ydzyfyCount
	ydzyfyCount=0
	do while not rs.eof
		tdate=cdate(rs("zzc_date"))
		if tdate>=stdate and tdate<=eddate then
			ydzyfyCount=ydzyfyCount+1
			redim preserve ydzyfy(ydzyfyCount)
			ydzyfy(ydzyfyCount-1)=""
			ydzyfy(ydzyfyCount-1)=ydzyfy(ydzyfyCount-1)& "@" & rs("zzc_id") 
			ydzyfy(ydzyfyCount-1)=ydzyfy(ydzyfyCount-1)& "@" & rs("well_type") 
			ydzyfy(ydzyfyCount-1)=ydzyfy(ydzyfyCount-1)& "@" & rs("dict_value") 
			ydzyfy(ydzyfyCount-1)=ydzyfy(ydzyfyCount-1)& "@" & rs("zzc_zzdate")
			ydzyfy(ydzyfyCount-1)=ydzyfy(ydzyfyCount-1)& "@" & rs("zzc_fee")
			ydzyfy(ydzyfyCount-1)=ydzyfy(ydzyfyCount-1)& "@" & rs("zzc_memo")
		end if
		rs.movenext
	loop
	rs.close
	%>
	<span class="subject">
		<%=syear%>年<%=smonth%>月井<%=wellId%>的转注作业费用结算
	</span> 
	<hr size="1" class=hr width="98%" align="center">
	<br>
	<form action="" method=post name=form1>
	<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2" 
	  bordercolor="#000000" bordercolordark="#F8EDEB" width=550>
	  <tr height="20">
	   <td class="title" align=center width=20>&nbsp</td>
	   <td class="title" align=center width=80>井号</td>
	   <td class="title" align=center width=80>作业区</td>
	   <td class="title" align=center width=80>转注日期</td>
	   <td class="title" align=center width=80>费用结算</td>
	   <td class="title" align=center width=200>备注</td>
	  </tr> 
	  <%for i=0 to ydzyfyCount-1%>
	  <tr height="20" align=center>
	   <td>&nbsp<input type=checkbox name=chydzyfy value=<%=split(ydzyfy(i),"@")(1)%>></td>
	   <td>&nbsp<%=wellId%></td>
	   <td>&nbsp<%=split(ydzyfy(i),"@")(3)%></td>
	   <td>&nbsp<%=split(ydzyfy(i),"@")(4)%></td>
	   <td>&nbsp<%=split(ydzyfy(i),"@")(5)%></td>
	   <td>&nbsp<textarea rows=2 cols=30 class=text><%=split(ydzyfy(i),"@")(6)%></textarea></td>
	  </tr> 
	  <%next%>
	</table>
	<br>
    <table width="98%" border="0" cellspacing="0" cellpadding="2" align="center">
		<tr>
			<td align=center>
				<input type="button" name="bt1" value="添加新数据" class=button LANGUAGE=javascript onclick='javascript:location.replace("frm_ydzyfy_add.asp?wellId=<%=wellId%>&year=<%=syear%>&month=<%=smonth%>");'> 
				<input type="button" name="bt1" value="修改选中的数据" class=button LANGUAGE=javascript onclick=subcheck(1)> 
				<input type="button" name="bt1" value="删除选中的数据" class=button LANGUAGE=javascript onclick=subcheck(0)> 
				<input type=hidden name=wellId value=<%=wellId%>>
				<input type=hidden name=year value=<%=syear%>>
				<input type=hidden name=month value=<%=smonth%>>
			</td>
		</tr>
	</table>
	<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_ydzyfy_form.asp");'>
		  </td>
		</tr>
	  </table>
	</form>

</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -