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

📄 frm_ydcsfy.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_ydcsfy_remove.asp";
	else if (act==1)
		form1.action="frm_ydcsfy_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
	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
	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_well_id='" &wellId& "' and csc_type=cszl_code and csc_well_id=well_id and well_area=dict_code and dict_type='area'"
	rs.open SQL,conn,1,1
	dim ydcsfy(),ydcsfyCount
	ydcsfyCount=0
	do while not rs.eof
		tdate=cdate(rs("csc_date"))
		if tdate>=stdate and tdate<=eddate then
			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")
		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=1000>
	  <tr height="20">
	   <td class="title" align=center width=20 rowspan=2>&nbsp</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=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>&nbsp<input type=checkbox name=chydcsfy value=<%=split(ydcsfy(i),"@")(1)%>></td>
	   <td>&nbsp<%=wellId%></td>
	   <td>&nbsp<%if split(ydcsfy(i),"@")(2)=0 then response.write "油井" else response.write "水井" end if%></td>
	   <td>&nbsp<%=split(ydcsfy(i),"@")(3)%></td>
	   <td>&nbsp<%=split(ydcsfy(i),"@")(4)%></td>
	   <td>&nbsp<%=split(ydcsfy(i),"@")(5)%></td>
	   <td>&nbsp<textarea rows=2 cols=25 class=text><%=split(ydcsfy(i),"@")(6)%></textarea></td>
	   <td>&nbsp<%=split(ydcsfy(i),"@")(7)%></td>
	   <td>&nbsp<%=split(ydcsfy(i),"@")(8)%></td>
	   <td>&nbsp<%=split(ydcsfy(i),"@")(9)%></td>
	   <td>&nbsp<textarea rows=2 cols=25 class=text><%=split(ydcsfy(i),"@")(10)%></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_ydcsfy_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_ydcsfy_form.asp");'>
		  </td>
		</tr>
	  </table>
	</form>

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

⌨️ 快捷键说明

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