📄 frm_wxrb.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 subcheck(act) {
if (act==0) {
if (form1.chwxrb.value=="") {
window.alert("请选择数据!");
}
else {
form1.action="frm_wxrb_remove.asp";
form1.submit();
}
}
}
-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
<%
sdate=cdate(request("year") & "-" & request("month") & "-" & request("day"))
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_wxrb,oil.oil_dict where wxrb_date='" &sdate& "' and wxrb_team_id=dict_code and dict_type='team'"
rs.open SQL,conn,1,1
dim wxrb(),wxrbCount
wxrbCount=0
do while not rs.eof
wxrbCount=wxrbCount+1
redim preserve wxrb(wxrbCount)
wxrb(wxrbCount-1)=""
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("wxrb_id")
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("wxrb_well_id")
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("dict_value")
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("wxrb_wxnr")
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("wxrb_sxyy")
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("wxrb_sxrq")
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("wxrb_bf_1")
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("wxrb_bf_2")
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("wxrb_bf_3")
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("wxrb_zryy")
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("wxrb_yxqk")
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("wxrb_lj_wjks")
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("wxrb_lj_zjsj")
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("wxrb_lj_yxyl")
wxrb(wxrbCount-1)=wxrb(wxrbCount-1)& "@" & rs("wxrb_memo")
rs.movenext
loop
rs.close
%>
<span class="subject">
<%=sdate%>的维修井动态日报
</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=1320>
<tr height="20">
<td class="title" rowspan=2 align=center width=20> </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=120>维修内容</td>
<td class="title" rowspan=2 align=center width=120>上修原因</td>
<td class="title" rowspan=2 align=center width=60>上修日期</td>
<td class="title" colspan=3 align=center> 修前正常产量</td>
<td class="title" rowspan=2 align=center width=120>昨日未完井原因</td>
<td class="title" rowspan=2 align=center width=120>昨日完井/占井影响油量情况</td>
<td class="title" colspan=3 align=center>五天累计油井维修情况</td>
</tr>
<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>
</tr>
<%
dim tcy,tco,tcs,twj,tzj,tyx,twell
tcy=0
tco=0
tcs=0
twj=0
tzj=0
tyx=0
twell=0
for i=0 to wxrbCount-1
tcy=tcy+split(wxrb(i),"@")(7)
tco=tco+split(wxrb(i),"@")(8)
tcs=tcs+split(wxrb(i),"@")(9)
twj=twj+split(wxrb(i),"@")(12)
tzj=tzj+split(wxrb(i),"@")(13)
tyx=tyx+split(wxrb(i),"@")(14)
twell=twell+1
%>
<tr height="20" align=center>
<td> <input type=checkbox name=chwxrb value=<%=split(wxrb(i),"@")(1)%>></td>
<td> <%=split(wxrb(i),"@")(3)%></td>
<td> <%=split(wxrb(i),"@")(2)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(wxrb(i),"@")(4)%></textarea></td>
<td> <textarea rows=2 cols=25 class=text><%=split(wxrb(i),"@")(5)%></textarea></td>
<td> <%=split(wxrb(i),"@")(6)%></td>
<td> <%=split(wxrb(i),"@")(7)%></td>
<td> <%=split(wxrb(i),"@")(8)%></td>
<td> <%=split(wxrb(i),"@")(9)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(wxrb(i),"@")(10)%></textarea></td>
<td> <textarea rows=2 cols=25 class=text><%=split(wxrb(i),"@")(11)%></textarea></td>
<td> <%=split(wxrb(i),"@")(12)%></td>
<td> <%=split(wxrb(i),"@")(13)%></td>
<td> <%=split(wxrb(i),"@")(14)%></td>
</tr>
<%next%>
<tr height="20" align=center>
<td>合计</td>
<td> <%=twell%>口</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> <%=tcy%></td>
<td> <%=tco%></td>
<td> <%=tcs%></td>
<td> </td>
<td> </td>
<td> <%=twj%></td>
<td> <%=tzj%></td>
<td> <%=tyx%></td>
</tr>
</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_wxrb_add.asp?sdate=<%=sdate%>");'>
<input type="button" name="bt1" value="删除选中的数据" class=button LANGUAGE=javascript onclick=subcheck(0)>
<input type=hidden name=sdate value=<%=sdate%>>
</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_wxrb_form.asp");'>
</td>
</tr>
</table>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -