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

📄 frm_zsgcrb_modify.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" src="/include/calender.js"></SCRIPT>
<SCRIPT LANGUAGE=javascript>
<!--
function subcheck() {
	form1.submit();
}
-->
</SCRIPT>

</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
	<%
	sdate=request.form("sdate")
	syear=split(sdate,"-")(0)
	smonth=split(sdate,"-")(1)
	sday=split(sdate,"-")(2)
	zsrbId=request.form("chzsrb")
	if zsrbId="" then
		response.redirect "/profile/errorpage.asp?title=修改注水工程动态日报&msg=您没有选择任何数据!" 
	else
		zsrbId=split(zsrbId,",")(0)
	end if
	isSub=request.form("isSub")
	if isSub="" then
		Set Rs = Server.CreateObject("ADODB.RecordSet")
		SQL="select * from oil.oil_zsrb,oil.oil_dict where zsrb_id='" &zsrbId& "' and zsrb_danw=dict_code and dict_type='area'"
		rs.open SQL,conn,1,1
		dim zsrb(11)
		zsrb(0)=rs("zsrb_id")
		zsrb(1)=rs("dict_value")
		zsrb(2)=rs("zsrb_jhkj")
		zsrb(3)=rs("zsrb_sjkj")
		zsrb(4)=rs("zsrb_lyl")
		zsrb(5)=rs("zsrb_jhrz")
		zsrb(6)=rs("zsrb_sjrz")
		zsrb(7)=rs("zsrb_ylj")
		zsrb(8)=rs("zsrb_nlj")
		zsrb(9)=rs("zsrb_xbzr")
		zsrb(10)=rs("zsrb_sjyy")
		rs.close
	%>
	<span class="subject">
		修改注水工程的动态日报<font color=cc0000><%=zsrbId%></font>
	</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="90%">
	  <tr height="20">
	   <td class="title" align=center width=30%>&nbsp</td>
	   <td class="title" align=center width=30%>原数据</td>
	   <td class="title" align=center width=40%>修改后(数据不变化则不填写!)</td>	
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>作业区</td>
	   <td align=left width=70% colspan=2>&nbsp&nbsp<%=zsrb(1)%></td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>计划开井口数</td>
	   <td align=left width=30%>&nbsp&nbsp<%=zsrb(2)%></td>
	   <td align=left width=40%>&nbsp&nbsp<input type=text name=text2 size=20 class=text></td>	
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>实际开井口数</td>
	   <td align=left width=30%>&nbsp&nbsp<%=zsrb(3)%></td>
	   <td align=left width=40%>&nbsp&nbsp<input type=text name=text3 size=20 class=text></td>	
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=15%>利用率</td>
	   <td align=left width=30%>&nbsp&nbsp<%=zsrb(3)%></td>
	   <td align=left width=40%>&nbsp&nbsp<input type=text name=text4 size=20 class=text></td>	
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>计划日注</td>
	   <td align=left width=30%>&nbsp&nbsp<%=zsrb(4)%></td>
	   <td align=left width=40%>&nbsp&nbsp<input type=text name=text5 size=20 class=text></td>	
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>实际日注</td>
	   <td align=left width=30%>&nbsp&nbsp<%=zsrb(5)%></td>
	   <td align=left width=40%>&nbsp&nbsp<input type=text name=text6 size=20 class=text></td>	
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>月累计注水量</td>
	   <td align=left width=30%>&nbsp&nbsp<%=zsrb(6)%></td>
	   <td align=left width=40%>&nbsp&nbsp<input type=text name=text7 size=20 class=text></td>	
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>年累计注水量</td>
	   <td align=left width=30%>&nbsp&nbsp<%=zsrb(7)%></td>
	   <td align=left width=40%>&nbsp&nbsp<input type=text name=text8 size=20 class=text></td>	
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>与昨日相比</td>
	   <td align=left width=30%>&nbsp&nbsp<%=zsrb(8)%></td>
	   <td align=left width=40%>&nbsp&nbsp<input type=text name=text9 size=20 class=text></td>	
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>当日水量升降原因分析</td>
	   <td align=left width=30%>&nbsp&nbsp<textarea cols=30 rows=3 class=text><%=zsrb(9)%></textarea></td>
	   <td align=left width=40%>&nbsp&nbsp<textarea name=text10 cols=30 rows=3 class=text></textarea></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=hidden name=chzsrb value=<%=zsrbId%>>
			<input type=hidden name=sdate value=<%=sdate%>>
			<input type=hidden name=isSub value=true>
			<input type="button" name="Submit32" value=" 更新 " class=button onclick=subcheck()>
			<input type="button" name="Submit32" value=" 返回 " class=button LANGUAGE=javascript onclick='javascript:location.replace("frm_zsgcrb.asp?year=<%=syear%>&month=<%=smonth%>&day=<%=sday%>");'>
		  </td>
		</tr>
	  </table>
	</form>
	<%
	else
		text2=request.form("text2")
		text3=request.form("text3")
		text4=request.form("text4")
		text5=request.form("text5")
		text6=request.form("text6")
		text7=request.form("text7")
		text8=request.form("text8")
		text9=request.form("text9")
		text10=request.form("text10")
		Set Rs = Server.CreateObject("ADODB.RecordSet")
		SQL="select * from oil.oil_zsrb where zsrb_id='" &zsrbId& "'"
		rs.open SQL,conn,1,3
		if text2<>"" then
			rs("zsrb_jhkj")=text2
		end if
		if text3<>"" then
			rs("zsrb_sjkj")=text3
		end if
		if text4<>"" then
			rs("zsrb_lyl")=text4
		end if
		if text5<>"" then
			rs("zsrb_jhrz")=text5
		end if
		if text6<>"" then
			rs("zsrb_sjrz")=text6
		end if
		if text7<>"" then
			rs("zsrb_ylj")=text7
		end if
		if text8<>"" then
			rs("zsrb_nlj")=text8
		end if
		if text9<>"" then
			rs("zsrb_xbzr")=text9
		end if
		if text10<>"" then
			rs("zsrb_sjyy")=text10
		end if
		rs.update
		rs.close
		response.redirect "frm_zsgcrb.asp?year=" &syear& "&month=" &smonth& "&day=" &sday
	end if
	%>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->

⌨️ 快捷键说明

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